wp_cpt_list
List items from any registered custom post type on a WordPress site. Specify post type, search, status, orderby, and pagination to retrieve the exact content you need.
Instructions
List items of any registered Custom Post Type. The post_type parameter must match the rest_base value returned by wp_get_post_types (e.g., "product" for WooCommerce, "event" for The Events Calendar). For built-in posts/pages, prefer wp_posts_list / wp_pages_list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| order | No | desc | |
| search | No | ||
| status | No | publish | |
| orderby | No | date | |
| per_page | No | ||
| post_type | Yes |