mcp-easy-ai__wp_create_post
Creates a new WordPress post. Required: title (unless allow_empty_title is true and content or excerpt is given). Optional: content (HTML/Gutenberg blocks accepted; sanitized by WordPress per the calling user capability), status (publish/draft/pending/private/future, or any other non-internal status registered on this site — default draft; use "future" with date or date_gmt to schedule), date (ISO 8601 site time, e.g. 2026-06-01T09:00:00), date_gmt (ISO 8601 GMT; send date or date_gmt, not both), excerpt, categories (array of category IDs), tags (array of tag IDs), tag_names (array of tag names or slugs; a missing tag is created, as WordPress does for tags typed in the editor), tax_input (object: taxonomy slug → array of term IDs, for any taxonomy of posts shown in the REST API), password (protects the post; a password-protected post cannot be sticky), featured_media (attachment ID), slug, format (standard/aside/chat/gallery/link/image/quote/status/video/audio), `aut… Through Royally: waits for a person to approve it in Royally; nothing on the site changes until then. This connection has no undo; Royally recorded the change but cannot reverse it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Scheduled publication date in ISO 8601 format, site time (e.g. 2026-06-01T09:00:00). Required when status is "future" unless date_gmt is given. | |
| meta | No | Meta key-value pairs to set. Only keys registered for the REST API persist, including the SEO keys of enabled plugin integrations (Rank Math, Yoast, SEOPress, The SEO Framework — see wp_update_post_meta for the list on this site); dropped keys are reported back as meta_ignored. | |
| slug | No | The slug (URL-friendly name) for the post. | |
| tags | No | Array of tag IDs to assign to the post. | |
| title | No | The title for the post. | |
| author | No | The user ID to assign as the post author. | |
| format | No | The format for the post. | |
| status | No | The status for the post. Use "future" with the "date" (or "date_gmt") field to schedule a post. Besides the core statuses, any non-internal status registered on this site (a custom status) is accepted, as the REST API accepts it. | draft |
| sticky | No | Whether the post should be sticky. | |
| content | No | The content for the post. HTML is allowed and will be sanitized. | |
| excerpt | No | The excerpt for the post. HTML is accepted and sanitized by WordPress per the calling user's capability. | |
| site_id | No | Site to run this tool on: 8ef2e52b-bd07-4671-a363-ebe8b480b65c (https://demo.royalplugins.com) | |
| date_gmt | No | Publication date in GMT, ISO 8601 (e.g. 2026-06-01T07:00:00). Send date or date_gmt, not both: the REST API ignores date_gmt when date is set. | |
| password | No | Password that protects the post. A password-protected post cannot be sticky. | |
| template | No | The theme file slug to use as the post template. | |
| tag_names | No | Tag names or slugs to assign, together with any tags IDs. An existing tag is matched by slug, then by name; a missing tag is created first (WordPress lets anyone who may assign tags create one). A tag created for a call that is then refused stays, unused. | |
| tax_input | No | Terms per taxonomy: keys are taxonomy slugs registered for posts and shown in the REST API, values are arrays of term IDs, e.g. {"genre":[4,9]}. Each list sets that taxonomy's terms. Do not name a taxonomy that categories, tags or tag_names already sets (category, post_tag). post_format is set with format. | |
| categories | No | Array of category IDs to assign to the post. | |
| ping_status | No | Whether pingbacks/trackbacks are open or closed. | |
| comment_status | No | Whether comments are open or closed for this post. | |
| featured_media | No | The ID of the featured media attachment. | |
| allow_empty_title | No | When true, title may be omitted or empty as long as content or excerpt is given: WordPress refuses only a post whose title, content and excerpt are all empty. Default false, which keeps title required. |