wp_list_posts
Retrieve and filter WordPress posts by search term, status, category, or tag to find specific content. Supports pagination and enhanced metadata for managing site posts.
Instructions
Lists posts from a WordPress site with comprehensive filtering options. Supports search, status filtering, and category/tag filtering with enhanced metadata display.
Usage Examples:
• Basic listing: wp_list_posts
• Search posts: wp_list_posts --search="AI trends"
• Filter by status: wp_list_posts --status="draft"
• Category filtering: wp_list_posts --categories=[1,2,3]
• Paginated results: wp_list_posts --per_page=20 --page=2
• Combined filters: wp_list_posts --search="WordPress" --status="publish" --per_page=10
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. |