bricks_wp_list_posts
Filter and list WordPress posts by status, category, tags, or search, returning ID, title, author, and date to audit content and identify posts to update.
Instructions
List WordPress posts with filtering. Returns ID, title, status, date, author, categories. Use for content auditing or finding posts to update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Page number (default 1) | |
| tags | No | Filter by tag IDs | |
| order | No | asc or desc (default: desc) | |
| search | No | Search term in title/content | |
| status | No | Post status: publish, draft, pending, private, any (default: publish) | publish |
| orderby | No | Order by: date, title, modified, id (default: date) | |
| per_page | No | Results per page (max 100, default 20) | |
| post_type | No | REST base of the post type (default: posts). For a CPT pass its REST base, e.g. "service-area", "service", "faq". Look it up with bricks_get_post_types. | posts |
| categories | No | Filter by category IDs |