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
| Field | Type | Required | Description |
|---|---|---|---|
| Post Type | select | No | Filter by specific post type (post, page, custom) |
| Category | select | No | Filter by category (posts only) |
| Author | select | No | Filter by specific author |
Available Data
When this trigger fires, the following data is available:
Post Information
| Variable | Type | Description |
|---|---|---|
{{Trigger.post_id}} | integer | The post ID |
{{Trigger.post_title}} | string | The post title |
{{Trigger.post_content}} | string | Full post content (HTML) |
{{Trigger.post_excerpt}} | string | Post excerpt |
{{Trigger.post_status}} | string | Post status (always “publish”) |
{{Trigger.post_type}} | string | Post type (post, page, etc.) |
{{Trigger.post_date}} | string | Publication date |
{{Trigger.post_url}} | string | Full URL to the post |
Author Information
| Variable | Type | Description |
|---|---|---|
{{Trigger.author.id}} | integer | Author user ID |
{{Trigger.author.name}} | string | Author display name |
{{Trigger.author.email}} | string | Author email address |
Taxonomies
| Variable | Type | Description |
|---|---|---|
{{Trigger.categories}} | array | List of category names |
{{Trigger.tags}} | array | List of tag names |
Featured Image
| Variable | Type | Description |
|---|---|---|
{{Trigger.featured_image.url}} | string | Featured image URL |
{{Trigger.featured_image.alt}} | string | Image alt text |
Example Workflows
Notify Team of New Posts
Send a Slack notification when content is published:
- Trigger: Post Published
- 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}}
- To:
Add to Newsletter
Automatically notify subscribers about new content:
- Trigger: Post Published (filtered to “Blog” category)
- Action: Mailchimp - Send Campaign
- Subject:
New on our blog: {{Trigger.post_title}} - Content: Include post excerpt and link
- Subject:
Social Media Sharing
Queue posts for social sharing:
- Trigger: Post Published
- Condition: Post type equals “post”
- 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