create-post
Publish, draft, or schedule WordPress posts programmatically. Specify title, content, status, date, categories, tags, and more using REST API integrations with secure authentication.
Instructions
Create a new WordPress post
Input Schema
Name | Required | Description | Default |
---|---|---|---|
author | No | The ID for the author of the post | |
categories | No | The terms assigned to the post in the category taxonomy | |
commentStatus | No | Whether or not comments are open on the post | open |
content | Yes | The content for the post | |
date | No | The date the post was published, in the site's timezone | |
dateGmt | No | The date the post was published, as GMT | |
excerpt | No | The excerpt for the post | |
featuredMedia | No | The ID of the featured media for the post | |
format | No | The format for the post | standard |
meta | No | Meta fields | |
password | Yes | WordPress application password | |
pingStatus | No | Whether or not the post can be pinged | open |
postPassword | No | A password to protect access to the content and excerpt | |
siteUrl | Yes | WordPress site URL | |
slug | No | An alphanumeric identifier for the post unique to its type | |
status | No | A named status for the post | draft |
sticky | No | Whether or not the post should be treated as sticky | |
tags | No | The terms assigned to the post in the post_tag taxonomy | |
template | No | The theme file to use to display the post | |
title | Yes | The title for the post | |
username | Yes | WordPress username |