WordPress · Arazzo Workflow
WordPress Attach Featured Media to Post
Version 1.0.0
Find an image in the media library and publish a post that features it.
Provider
Workflows
attach-featured-media-to-post
Select an existing image attachment and feature it on a new post.
Lists image media items, branches on whether any exist, and when one is found creates a published post whose featured_media is set to that attachment id, then reads the post back to verify.
1
findImage
listMedia
List image attachments from the media library, returning the most recent single image to use as the featured media.
2
createPostWithFeatured
createPost
Create a published post and set its featured_media to the image attachment found in the media library.
3
verifyPost
getPost
Read the post back by id to confirm it was created with the featured image assigned.