End-to-end workflow for creating, categorizing, adding a featured image, and publishing a WordPress blog post through abilities.

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

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

StepAbilityTypeModule
1content/createWContent
2taxonomies/list-termsRTaxonomies
2taxonomies/assign-to-contentWTaxonomies
3media/uploadWMedia
3meta/update-post-metaWMeta
4content/updateWContent
4content/getRContent

Modules Involved

Content

Create, update, verify

Taxonomies

Categories and tags

Media

Featured image upload

Meta

Set thumbnail ID


Related