wp_list_posts
List posts from a WordPress site with filters for search, status, categories, and tags. Supports pagination up to 100 items per page.
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. | |
| per_page | No | Number of items to return per page (max 100). | |
| search | No | Limit results to those matching a search term. | |
| status | No | Filter by post status. | |
| categories | No | Limit results to posts in specific category IDs. | |
| tags | No | Limit results to posts with specific tag IDs. |