Actions17
Post → Get Many
AI-generatedSummary
Retrieve multiple posts with optional filtering, ordering, and pagination.
Inputs
- returnAll — Whether to return all results or only up to a given limit
- limit — Maximum number of results to return (1-10)
- options — Additional query options such as search terms, status filters, ordering, taxonomic constraints, and date ranges
Output shape
a list of post objects
Pagination defaults to
per_page/page;returnAlltrue returns all matching items, otherwise only up to the specified limit.
Examples
Example 1: Fetch the latest 5 published posts.
Set Return All to false, Limit to 5, optionally set Options → Status to "publish" and Options → OrderBy to "date" with Order "desc".
Example 2: Retrieve all posts created after a given ISO8601 date.
Enable Return All and set Options → After to the desired date.
Example 3: Get posts filtered by category ID and ordered by title descending.
Set Options → Categories to the category ID(s), Options → OrderBy to "title", and Options → Order to "desc".