LearningSpot@Wordpress icon

LearningSpot@Wordpress

Consume Wordpress API

Page → Get Many

AI-generated

Summary

Retrieve multiple WordPress pages with optional filtering, sorting, and pagination parameters.

Inputs

  • Return All — Choose whether to return all matching pages or limit the number of results.
  • Limit — Maximum number of pages to retrieve when 'Return All' is false (minimum 1, maximum 10).
  • Options — Collection of filters and sorting options including publication date range, authors, status, parent page ID, menu order, search string, and context for response fields.

Output shape

a list of page objects as returned by the WordPress REST API

If 'Return All' is false, results are limited to the specified 'Limit'. Pagination is controlled via the 'Page' option. The response data includes fields determined by the 'Context' option (view, embed, or edit). Errors may be returned if API request fails.

Examples

Example 1: Get up to 5 published pages authored by specific authors, sorted by date descending.

Set 'Return All' to false, 'Limit' to 5, and use 'Options' to filter by 'Author Names or IDs', 'Status' set to 'publish', 'Order By' as 'date', and 'Order' as 'DESC'.

Links

Discussion