WordPress - Create Page
Description
Section titled “Description”This module allows creating static pages on a WordPress site. Pages are non-chronological content, ideal for sections like “About Us”, “Contact”, policies, etc. Supports page hierarchy through the parent field.
Configuration
Section titled “Configuration”Credentials
Section titled “Credentials”| Field | Description | Example |
|---|---|---|
url | WordPress site base URL | https://my-site.com |
username | WordPress username | admin |
application_password | Application password generated in WordPress | xxxx xxxx xxxx xxxx |
Parameters
Section titled “Parameters”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | WordPress credential |
| title | text | Yes | Page title |
| content | textarea | Yes | HTML content |
| status | select | No | Status: draft, publish, private. Default: draft |
| parent | text | No | Parent page ID (for hierarchy). Empty = root |
| slug | text | No | SEO-friendly URL. If empty, generated from title |
| featured_media | text | No | Featured image ID |
Output
Section titled “Output”{ "success": true, "page_id": 456, "page_url": "https://misitio.com/mi-pagina/", "page": { "id": 456, "title": { "rendered": "Mi Pagina" }, "status": "publish" }, "message": "Page \"Mi Pagina\" created (publish)"}Usage Example
Section titled “Usage Example”Create basic page as draft
Section titled “Create basic page as draft”{ "title": "About Us", "content": "<h2>Our Story</h2><p>We are a company dedicated to...</p>", "status": "draft"}Create published subpage
Section titled “Create published subpage”{ "title": "Privacy Policy", "content": "<p>In compliance with current regulations...</p>", "status": "publish", "parent": "10", "slug": "privacy-policy"}API Used
Section titled “API Used”- Endpoint:
POST /wp-json/wp/v2/pages - Documentation: WordPress REST API - Pages
- By default pages are created as draft
- The parent field allows creating page hierarchies (subpages)
- The slug is automatically generated from the title if not specified
- The featured image requires a media ID previously uploaded with WordpressUploadMedia
Related Nodes
Section titled “Related Nodes”- WordpressGetPages - Get existing pages
- WordpressUpdatePost - Update page content
- WordpressUploadMedia - Upload featured image for the page