WordPress - Create Post
Description
Section titled “Description”This module allows creating posts or articles on a WordPress site. Supports categories, tags, excerpt, featured image, publication status, and custom author.
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 |
Initial Setup
Section titled “Initial Setup”- In WordPress go to Users > Profile > Application Passwords
- Enter a name (e.g.: “Floogos”) and click Add New Application Password
- Copy the generated password (only shown once)
- In Floogos, create a WordPress credential with the site URL, username, and application password
Parameters
Section titled “Parameters”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | WordPress credential |
| title | text | Yes | Post title |
| content | textarea | Yes | Post HTML content |
| status | select | No | Status: draft, publish, pending, private. Default: draft |
| categories | text | No | Category IDs separated by comma |
| tags | text | No | Tag IDs separated by comma |
| excerpt | textarea | No | Short post summary |
| featured_media | text | No | Featured image ID (upload with Upload Media) |
| slug | text | No | SEO-friendly URL. If empty, generated from title |
| author | text | No | Author ID. If empty, uses the authenticated user |
Output
Section titled “Output”{ "success": true, "post_id": 123, "post_url": "https://misitio.com/mi-nuevo-post/", "post": { "id": 123, "title": { "rendered": "Mi Nuevo Post" }, "status": "publish", "link": "https://misitio.com/mi-nuevo-post/" }, "message": "Post \"Mi Nuevo Post\" created (publish)"}Usage Example
Section titled “Usage Example”Example Workflow
Section titled “Example Workflow”[Trigger: new content] -> [AI: generate article] -> [Upload Media] -> [Create WordPress Post] | generates HTML | featured img | publishes with imageAPI Used
Section titled “API Used”- Endpoint:
POST /wp-json/wp/v2/posts - Documentation: WordPress REST API - Posts
- By default posts are created as draft
- Categories and tags are specified by numeric ID, not by name
- Content supports HTML and variables with
{{variable}}syntax - The featured image requires a media ID previously uploaded with WordpressUploadMedia
Related Nodes
Section titled “Related Nodes”- WordpressGetPosts - Get existing posts
- WordpressUpdatePost - Update an existing post
- WordpressGetCategories - Get category IDs to assign to the post
- WordpressUploadMedia - Upload featured image for the post