← Back to Tools Reference

wp_list_categories

Read-only

Description

Use this tool to retrieve all categories on your site, including their IDs, names, slugs, post counts, and parent categories. Your AI uses this to identify the right category ID before assigning posts, updating category details, or building navigation.

See it in action

Claude Desktop — MCP Connection
👤
List all categories on my site along with their post counts.
🤖
Calling Tool: wp_list_categories
Done! I've used wp_list_categories to complete that for you.
{"status": "success"}

Example Use Cases & Sample Prompts

  1. Taxonomy audit
    • Prompt: “List all my categories so I can see the full taxonomy structure.”
  2. Finding empty categories
    • Prompt: “List all categories and show me any that have zero posts.”
  3. Organizing before publishing
    • Prompt: “Before I write this new post, can you list all available categories so I can decide which one to use?”
  4. Category count review
    • Prompt: “How many total categories do I have, and which ones have the most posts?”
  5. Finding a category
    • Prompt: “List all categories and find the one related to SEO so I can assign it to a post.”

Access this tool today

Install the Easy MCP AI plugin to securely expose wp_list_categories to Claude, ChatGPT, and more.

Download Plugin