Actions12
Post → Create
AI-generatedSummary
Create a new post on a Wordpress site with a specified title and optional additional fields and featured media upload.
Inputs
- Title (required) — The title for the post
- Featured Media — Toggle to upload a featured media file to associate with the post
- Binary Property (required) — Name of the binary property containing the media to upload; required if Featured Media is enabled
- File Name — Name of the media file including extension (e.g., example.jpeg), used if Featured Media is enabled
- Additional Fields — Optional fields such as author ID, content, slug, password, status, comment and ping status, format, sticky flag, featured media ID, categories, tags, and template to customize the post
Output shape
a single record representing the created post, including its ID and optionally the featured media ID
If featured media upload is enabled, the media is first uploaded and attached to the post, with the response including the featured media ID.
Examples
Example 1: Creating a post with title and content
Set Title to 'My Post' and Additional Fields > Content to 'Post content.'
Example 2: Creating a post with featured media
Set Title, enable Featured Media, specify Binary Property and File Name, and optionally other additional fields.