Comandos WordPress icon

Comandos WordPress

Публикация в WordPress через Comandos API

Опубликовать

AI-generated

Summary

Publish a WordPress post or page with specified content blocks, metadata, SEO fields, and publication options via the Comandos API.

Inputs

  • Тип контента — Select the content type to publish: 'post' or 'page'. Defaults to 'post'.
  • Статус — Set the publication status: 'publish', 'draft', 'pending', 'private', or 'future'. Defaults to 'publish'.
  • Заголовок (required) — Provide the title of the post or page to be published.
  • ID обложки (Media ID) — Optional Media ID that will be set as the featured image for the content.
  • Контент (блоки) (required) — Specify one or more content blocks to build the post/page body. Each block can be HTML text or an image with URL, ALT text, and optional caption. At least one block must be provided.
  • SEO & Snippets — Add optional SEO metadata fields compatible with Yoast SEO, and Twitter card labels and data for enhanced search and social preview optimization.
  • Опции — Include optional fields like excerpt (short summary), slug (URL path), categories, and tags by their WordPress IDs (comma-separated).
  • Custom Meta — Add custom meta fields as key-value pairs for additional metadata beyond standard options.

Output shape

a list of JSON objects

Each output item corresponds to a published content item, containing the API response. The node handles publishing the content by sending a POST request to the Comandos API with all specified parameters bundled in the payload. Errors will provide descriptive messages referencing the item index.

Links

Discussion