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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"post_type": "<post_type>"
},
"name": "wp_cpt_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 |