Post Published

Trigger a workflow when a post is published on your WordPress site.

Overview

The Post Published trigger fires whenever a new post is published or an existing post transitions to the “published” status. This includes posts, pages, and custom post types.

When It Fires

  • A new post is published
  • A draft is changed to published
  • A scheduled post goes live
  • A post is updated and republished

Configuration

FieldTypeRequiredDescription
Post TypeselectNoFilter by specific post type (post, page, custom)
CategoryselectNoFilter by category (posts only)
AuthorselectNoFilter by specific author

Available Data

When this trigger fires, the following data is available:

Post Information

VariableTypeDescription
{{Trigger.post_id}}integerThe post ID
{{Trigger.post_title}}stringThe post title
{{Trigger.post_content}}stringFull post content (HTML)
{{Trigger.post_excerpt}}stringPost excerpt
{{Trigger.post_status}}stringPost status (always “publish”)
{{Trigger.post_type}}stringPost type (post, page, etc.)
{{Trigger.post_date}}stringPublication date
{{Trigger.post_url}}stringFull URL to the post

Author Information

VariableTypeDescription
{{Trigger.author.id}}integerAuthor user ID
{{Trigger.author.name}}stringAuthor display name
{{Trigger.author.email}}stringAuthor email address

Taxonomies

VariableTypeDescription
{{Trigger.categories}}arrayList of category names
{{Trigger.tags}}arrayList of tag names
VariableTypeDescription
{{Trigger.featured_image.url}}stringFeatured image URL
{{Trigger.featured_image.alt}}stringImage alt text

Example Workflows

Notify Team of New Posts

Send a Slack notification when content is published:

  1. Trigger: Post Published
  2. Action: Send Email
    • To: team@yoursite.com
    • Subject: New post published: {{Trigger.post_title}}
    • Body: {{Trigger.author.name}} published a new post. View it here: {{Trigger.post_url}}

Add to Newsletter

Automatically notify subscribers about new content:

  1. Trigger: Post Published (filtered to “Blog” category)
  2. Action: Mailchimp - Send Campaign
    • Subject: New on our blog: {{Trigger.post_title}}
    • Content: Include post excerpt and link

Social Media Sharing

Queue posts for social sharing:

  1. Trigger: Post Published
  2. Condition: Post type equals “post”
  3. Action: Add to Airtable
    • Table: Social Queue
    • Fields: Title, URL, Excerpt

Best Practices

  • Use post type filters to avoid triggering on page updates
  • Consider author filters for multi-author sites
  • Use category filters to target specific content types
  • Test with draft posts before going live