Skip to main content

Overview

The WordPress block connects your workflows to a WordPress site. Use it to create new posts, update existing posts by slug, or upload images to the media library. It is the workflow-level counterpart to the WordPress integration.

Configuration

Select Connection

Choose the WordPress connection to use. The dropdown lists the WordPress connections in your workspace. You must connect a WordPress site before using this block. See the WordPress integration for connection setup, prerequisites, and re-authentication.

Select Action

Choose the operation to perform. Options:

Create Post

Add a new post to your WordPress site. Title and Content are required.

Title (Required)

The post title. Example:

Content (Required)

The post body. HTML is supported. Slate strips wrapper tags such as <html> and <body> and wraps bare text in paragraphs. Example:

Status

The post status. Default: Draft Options: Draft, Publish, Pending Review, Private.

Optional fields

Click Add field to include any of these. All accept placeholders.
Upload an image first with the Upload Image action, then pass the returned media ID into Featured Image ID.

Update Post

Modify an existing post by matching its slug. Only the fields you add are changed; everything else stays unchanged.

Post Slug (Required)

The slug of the existing post to update. Example:

Status

The post status. Defaults to Draft when no status is set. Options: Draft, Publish, Pending Review, Private.

Optional fields

Click Add field to update any of these. All accept placeholders.

Upload Image

Upload an image to the WordPress media library. The action returns a media ID you can use as a featured image.

Image Source

Choose where the image comes from. For URL, set Image URL (e.g. https://example.com/image.jpg). For Drive, select a file or pass a Drive File ID placeholder.

Filename

Optional base name for the file. The extension is detected automatically from the image data.

Alt Text

Optional alt text for the image.

Media Title

Optional title for the media item.

Output Data

The block returns the created or updated post, or the uploaded media item. Access values in later steps with references such as {{step_n.output.id}}.

Create Post / Update Post

Returns the post object with these fields:
  • id — the WordPress post ID
  • date — post creation date
  • modified — last modified date
  • slug — the post slug
  • status — the post status, such as draft or publish
  • type — the WordPress post type
  • link — the live URL of the post
  • site_url — the WordPress site URL
Update Post also returns previous_status, previous_link, and lookup_slug.

Upload Image

Returns the media item with these fields:
  • id — the WordPress media ID (use this as a Featured Image ID)
  • date — upload date
  • image_url — the hosted image URL

Sample Output

Create Post:
Upload Image:

Error Handling

Common errors and solutions:

Best Practices

  • Start with Status set to Draft and publish after review.
  • Upload images before creating posts so you can set the featured image.
  • Use unique slugs to avoid collisions when creating posts.
  • For Update Post, only add the fields you intend to change.
  • Validate Meta / ACF JSON before mapping it into the block.
  • Look up category IDs in WordPress under Posts > Categories.
  • For bulk runs, pace the workflow to avoid hitting site rate limits.

Common Use Cases


What’s Next