Create WordPress Post
wordpress_create_postCreate a post or page on a connected WordPress site. Defaults to a draft you can review before publishing.
On a MULTILINGUAL site (Polylang or WPML) pass language ('en', 'tr', 'de'…) to place the page in that language — otherwise it lands in the site's default language (e.g. an English page would get the Turkish menu and enter the Turkish sitemap). The reply's post.language echoes the language the page ended up in, so you can confirm it. On a single-language site language is ignored.
PAGE TEMPLATE + META (for page builders like WPBakery): template sets the page's theme template (the _wp_page_template value, e.g. "templates/vc-page-template.php") so a translated page opens with the same layout instead of the default sidebar one. meta writes arbitrary post meta as a dict — this is how WPBakery's own per-page CSS (_wpb_shortcodes_custom_css) or a theme's page options get onto an API-created page, which they otherwise never do. copy_meta_from= is the shortcut: it copies the template + WPBakery custom CSS (and any keys you add with copy_meta_keys via meta) from a working page to this new one — the usual fix for translation pages that come out unstyled. Needs Connector 0.9.2 or newer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| slug | No | ||
| tags | No | ||
| type | No | post | |
| title | Yes | ||
| status | No | draft | |
| content | No | ||
| excerpt | No | ||
| language | No | ||
| site_url | No | ||
| template | No | ||
| categories | No | ||
| copy_meta_from | No | ||
| featured_media | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||