wp_list_cpt_items is one of 162 MCP tools included in Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_list_cpt_items
Read-onlyDescription
Custom post types power some of the most important content on any WordPress site — portfolios, events, products, testimonials — and Easy MCP AI makes them fully accessible to your AI client. Pass the REST API slug for your CPT along with optional status and keyword filters, and get back a paginated list of matching items without ever opening wp-admin. This works with any CPT that has REST API support enabled.
See it in action
wp_list_cpt_items {
"post_type": "product",
"total": 5,
"items": [
{ "id": 201, "title": "Premium Plan", "status": "publish" },
{ "id": 202, "title": "Starter Plan", "status": "publish" },
{ "id": 203, "title": "Free Tier", "status": "publish" }
]
} Found 5 items in the 'product' post type.
Example Use Cases & Sample Prompts
- Browsing portfolio items
- Prompt: “Show me all published items in the ‘portfolio’ custom post type.”
- Listing events
- Prompt: “List all upcoming events from the ‘events’ post type.”
- Product audit
- Prompt: “How many items are in my ‘products’ custom post type?”
- Finding drafts in a CPT
- Prompt: “List all draft items in the ‘testimonials’ post type.”
- Searching CPT content
- Prompt: “Search the ‘resources’ post type for items mentioning ‘security’.”
Frequently Asked Questions
What does wp_list_cpt_items do?
Custom post types power some of the most important content on any WordPress site — portfolios, events, products, testimonials — and Easy MCP AI makes them fully accessible to your AI client. Pass the REST API slug for your CPT along with optional status and keyword filters, and get back a paginated list of matching items without ever opening wp-admin. This works with any CPT that has REST API support enabled.
How do I use wp_list_cpt_items with my AI assistant?
Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language — for example: "Show me all published items in the 'portfolio' custom post type."
Do I need Easy MCP AI to use wp_list_cpt_items?
Yes. wp_list_cpt_items is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately — no coding required.
Related Tools
Custom Post TypesCreate a new item in any custom post type
Delete a custom post type item (trash or force-delete)
Get a single custom post type item by ID with full content
Update an existing custom post type item's content or status
List all registered post types (built-in and custom) with their labels and settings
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_list_cpt_items and all 74 tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.