wp_get_posts
Retrieve WordPress posts with filtering by type, status, author, or search terms, and pagination options for development workflows.
Instructions
Get WordPress posts with optional filtering and pagination
Input Schema
Name | Required | Description | Default |
---|---|---|---|
author_id | No | Filter by author ID | |
limit | No | Number of posts to retrieve (default: 10) | |
offset | No | Offset for pagination (default: 0) | |
post_status | No | Post status (publish, draft, private, etc.) | publish |
post_type | No | Post type (default: post) | post |
search | No | Search in post title and content |