list_posts
Retrieve WordPress posts with basic information, filtered by status, author, category, tag, or publication date.
Instructions
List posts in WordPress site and get basic information of each post.
Date parameters must be valid ISO 8601 date strings (YYYY-MM-DDTHH:MM:SS).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number to list - default: 1 | |
| tags | No | Comma-separated list of tag IDs - default: None | |
| order | No | Sort order - default: desc | desc |
| context | No | The context of posts to list - default: view | view |
| per_page | No | Number of posts per page - default: 10 | |
| statuses | No | Comma-separated list of statuses (publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed) - default: publish | publish |
| author_ids | No | Comma-separated list of author IDs - default: None | |
| categories | No | Comma-separated list of category IDs - default: None | |
| search_query | No | Limit results to those matching a string - default: None | |
| publish_after | No | ISO 8601 date to filter posts published after - default: None | |
| modified_after | No | ISO 8601 date to filter posts modified after - default: None | |
| publish_before | No | ISO 8601 date to filter posts published before - default: None | |
| modified_before | No | ISO 8601 date to filter posts modified before - default: None |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||