ZapierChecked blueprint4 nodes
Announce a new WordPress post on X and in Slack
A newly published WordPress post is queued on X at the right length and announced to the team in Slack with the link.
Portfolio reference build with demo data and placeholder credentials, not a client deployment.
Pain
One recording stops dying in a folder. The blueprint drafts channel-ready posts and leaves them queued.
Solution
A newly published WordPress post is queued on X at the right length and announced to the team in Slack with the link.
Impact · From the blueprint
About 10 minutes per post.
- Beginner
- Validated
- Draft / approval
- WordPress
- Code by Zapier
- Buffer
- Slack
Library status: passing. Schema, field mapping, task count, and Code-step unit tests pass. Not built in a live Zapier account.

Step inspector
The first step shows the checked-in sample payload.Later steps name the node. They are not a live execution.
Guardrails
- Draft or approval gate described in the README
Credential ids in the JSON are placeholders. These files are portfolio demos.
Deploy this for your business
Tell us this slug and what still happens by hand. We will map it onto your accounts. This page is not a claim that the blueprint already runs for a customer.
README
Portfolio demo by Mustafa (mustafaautomation). Not client work. The people, companies, and numbers in it are made up. Rebuild it in your own Zapier account. Nothing here is connected to anyone's account.
Category: Social
Difficulty: beginner
Apps: WordPress, Code by Zapier, Buffer, Slack
Zapier plan: Professional (multi-step Zap: 3 steps after the trigger)
Tasks per run: 3
Test status: passing (schema, mapping scope, task count, Code step unit tests)
Problem
Posts go live and the team finds out from a customer. The share on X, when it happens, is the title and a link with nothing worth clicking.
Who it's for
Content teams and agencies running a WordPress blog for themselves or a client.
How the Zap runs
flowchart TD s1["1. WordPress: New Post<br/>New published post"] s2["2. Code by Zapier<br/>Fit the post for X"] s1 --> s2 s3["3. Buffer<br/>Queue it on X"] s2 --> s3 s4["4. Slack<br/>Tell the team"] s3 --> s4
Build it in the Zapier editor
Zapier has no import file for a Zap like this one, so it is built by hand from the steps below. zap.json is the same Zap in a machine-readable form (schema), and zap.yaml is the same document in YAML.
A value like [2. vendor] means: click the field, open step 2 in the data picker, and choose vendor. Plain text is typed as shown. YOUR_... is a value from your own account.
Before you start
- Have these ready from your own accounts:
YOUR_X_PROFILE.
Steps
1. Trigger: New published post
App: WordPress · Event: New Post · polling (Zapier checks on your plan's update interval) · Tasks: 0
Fires when a post is published (not on drafts).
| Field | Value |
|---|---|
| Post Status | publish |
| Post Type | post |
Fields this library maps from the trigger: post_id, title, excerpt, link, author, categories, date. Zapier shows them with its own labels; pick the one with the same meaning.
2. Action: Fit the post for X
App: Code by Zapier · Event: Run JavaScript · Tasks: 1
Uses the excerpt as the summary and the categories as hashtags, trimmed so the whole post fits 280 characters with the link.
Paste the whole of code/fit-channels.js into the code box. Source: content/code/fit-channels.cjs. Unit tests: content/code/fit-channels.test.cjs.
| Input Data key | Value |
|---|---|
title | [1. title] |
summary | [1. excerpt] |
link | [1. link] |
hashtags | [1. categories] |
Returns: linkedin, x, facebook, x_length.
3. Action: Queue it on X
App: Buffer · Event: Add to Queue · Tasks: 1
Queued, not posted, so the social lead can still adjust it.
| Field | Value |
|---|---|
| Profile | YOUR_X_PROFILE |
| Text | [2. x] |
| Shorten Links? | No |
| Post Now? | No |
Later steps can map: id, due_at.
4. Action: Tell the team
App: Slack · Event: Send Channel Message · Tasks: 1
Gives sales and support the link the day it is live.
| Field | Value |
|---|---|
| Channel | #marketing |
| Message Text | :newspaper: New on the blog: [1. title] by [1. author] [1. link] Queued on X ([2. x_length] characters). |
| Send as a bot? | Yes |
| Bot Name | Zap alerts |
| Include a link to this Zap? | No |
Later steps can map: ts, permalink.
Test it
Use sample-trigger.json as the test record. For an instant or webhook trigger, send it to the trigger once; for a polling trigger, create a matching record in the app and click Test trigger. Then test each step in order and read its output before you turn the Zap on.
{
"post_id": "4821",
"title": "How we cut month-end close from six days to two",
"excerpt": "A walk through the three automations that removed most of the retyping from our close: invoice capture, payout matching, and a daily exceptions list.",
"link": "https://www.example.com/blog/month-end-close-two-days",
"author": "Zainab Qureshi",
"categories": "Finance, Automation",
"date": "2026-11-24T08:00:00Z"
}
Plan and task usage
| Step | App | Tasks |
|---|---|---|
| 1. New published post | WordPress | 0 |
| 2. Fit the post for X | Code by Zapier | 1 |
| 3. Queue it on X | Buffer | 1 |
| 4. Tell the team | Slack | 1 |
A typical run uses 3 tasks. Zapier does not charge tasks for triggers, Filter, Paths, Formatter, Delay, Looping, Digest, Storage, or Zapier Tables steps. AI by Zapier is counted here as 1 task; Zapier prices it by model tier, so a larger model can cost more.
Minimum plan: Professional, because of: multi-step Zap: 3 steps after the trigger. The Free plan only runs two-step Zaps (a trigger and one action) and leaves out Filters, Paths, Formatter, webhooks, AI by Zapier, and premium apps.
Customize
- Add a second Buffer step with
fit.linkedinfor the LinkedIn version. - Map a custom field instead of the excerpt if your theme leaves excerpts empty.
Limits
- WordPress categories become hashtags as-is; very long category names make clumsy hashtags. Rename or map them with a lookup table.
Time saved
About 10 minutes per post.
Files
| File | What it is |
|---|---|
zap.json | The Zap, step by step, in schema 1.0.0. |
zap.yaml | The same document in YAML. |
sample-trigger.json | Fictional trigger record for the first test. |
diagram.png | The step list, drawn like the Zapier editor. |
code/fit-channels.js | Paste-ready Code by Zapier step. |