WordPress Extended icon

WordPress Extended

WordPress REST API with Custom Post Types, ACF and Meta Fields

Actions17

Page → Create

AI-generated

Summary

Create a new page in WordPress REST API.

Inputs

  • title (required) — The title for the page
  • additionalFields — Additional fields for the page (author, content, slug, password, status, comment status, ping status, template, menu order, featured media ID)
  • menuOrder — The order of the page in relation to other pages
  • featuredMediaId — The ID of the featured media for the page

Output shape

a single page object

The created page’s data is returned; on error with continueOnFail enabled an error object is returned instead.

Examples

Example 1: Create a simple page with title and content.

Set Resource to Page, Operation to Create; enter Title, set Additional Fields → Content to desired content.

Example 2: Create a page using a specific author and status.

Enter Title, fill Additional Fields → Author Name or ID with an author ID; set Status to "publish".

Example 3: Create a page with an Elementor template.

Enter Title, then in Additional Fields → Page Template → Values, set elementor to true and Template to "elementor_canvas".

Links

Discussion