wp_list_content
List WordPress posts, pages, products, or custom post types with search, pagination, and status filters. Retrieve content by type, category, order, and more.
Instructions
List WordPress content (posts, pages, products, or any custom post type). Supports search, pagination, and filtering by status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default: 1) | |
| type | Yes | Post type: "post", "page", "product", or any custom post type | |
| order | No | "ASC" or "DESC" (default: "DESC") | |
| search | No | Search query to filter content | |
| status | No | Filter by status: "publish", "draft", "pending", "private", "trash", "any" (default: "any") | |
| orderby | No | Order by: "date", "title", "modified", "menu_order" (default: "date") | |
| category | No | Filter by category slug | |
| per_page | No | Items per page (default: 20) |