Create a post or page
wp_content_createCreate WordPress posts or pages with content, status, categories, tags, meta, and templates, returning the new ID and link.
Instructions
Create content. Returns the new ID and link. Supports meta, taxonomy terms and page templates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ISO date, required for status=future | |
| meta | No | ||
| slug | No | ||
| tags | No | ||
| type | No | post | |
| title | Yes | ||
| parent | No | ||
| status | No | draft | |
| content | No | Block or classic HTML | |
| excerpt | No | ||
| template | No | Page template, e.g. elementor_header_footer | |
| categories | No | ||
| menu_order | No | ||
| featured_media | No |