This workflow walks through the complete process of publishing a blog post — from draft creation to live publication. It combines abilities from the Content, Taxonomies, Media, and Meta modules in the correct sequence.
The Workflow
Step 1 — Create the Draft
Create the post as a draft first. Include the title, content (as Gutenberg block markup), and excerpt. Never create directly as published — always draft, configure, then publish.
content/create
title: "My Post Title"
content: "<!-- wp:paragraph --><p>...</p><!-- /wp:paragraph -->"
excerpt: "A brief summary for archives and search."
post_type: "post"
status: "draft"
content/create → returns post ID
Step 2 — Assign Categories and Tags
Attach category and tag term IDs to the post. Use taxonomies/list-terms first if you need to look up term IDs by name.
taxonomies/assign-to-content · taxonomies/list-terms
Step 3 — Upload Featured Image
Upload an image to the media library, then set it as the post’s featured image via post meta. The _thumbnail_id meta key is what WordPress uses internally for featured images.
media/upload → returns attachment_id
meta/update-post-meta
post_id: {post_id}
key: "_thumbnail_id"
value: "{attachment_id}"
media/upload · meta/update-post-meta
Step 4 — Publish
Update the post status from draft to publish. The post is now live. Verify by retrieving it and checking the permalink.
content/update
id: {post_id}
status: "publish"
content/get → verify link and status
content/update · content/get
Complete Ability Chain
| Step | Ability | Type | Module |
|---|---|---|---|
| 1 | content/create | W | Content |
| 2 | taxonomies/list-terms | R | Taxonomies |
| 2 | taxonomies/assign-to-content | W | Taxonomies |
| 3 | media/upload | W | Media |
| 3 | meta/update-post-meta | W | Meta |
| 4 | content/update | W | Content |
| 4 | content/get | R | Content |
Modules Involved
Content
Create, update, verify
Taxonomies
Categories and tags
Media
Featured image upload
Meta
Set thumbnail ID