Skip to main content
Cookbook Content

Set a featured image on any post from a URL with AI

Pull a photo into your media library and set it as a post's featured image, without the manual upload dance.

Difficulty Beginner
Time ~5 min
Tools search_images, upload_media, rest_api

Prerequisites

A connected site and the post you want to give a featured image.

The prompt
Set a featured image on my post titled "[post title]".

[If you already have an image, paste its URL here. Otherwise, delete this line and tell me the subject or mood you want, for example "a calm mountain lake at sunrise," and find a photo that fits. Show me your pick before you upload it.]

Please add the image to my media library, give it descriptive alt text for accessibility, and set it as the featured image on that post. Do not change anything else in the post.

After it is set, show me the featured image and confirm it is assigned so I can spot-check it. If I ask you to do several posts, handle them one at a time and pause so I can approve each image.

Already connected to WPVibe?

Skip the copy-paste. Just ask your AI for the “Set a featured image on any post from a URL with AI” recipe, or describe the task, and WPVibe runs these steps on your own site.

A post without a featured image looks unfinished everywhere it appears. It is the thumbnail in your blog archive, the picture that shows when someone shares the link, and the banner many themes place at the top of the article. Setting one by hand means finding a photo, downloading it, uploading it to your media library, writing alt text, and then remembering to assign it. Most people skip a few of those steps, so posts go out with a blank space where the image should be.

WPVibe does the whole chain for you. Hand it a photo URL, or describe the look you want and let it find one, and it pulls the image into your media library, writes descriptive alt text for accessibility, and sets it as the post’s featured image. It shows you the picture it picked before it commits, changes nothing else in the post, and confirms the image is assigned when it is done. If you have a stack of posts to fix, it works through them one at a time so you can approve each choice.

Paste the prompt below, name the post, and either drop in an image URL or describe the subject you want. Keep it to one post per pass when the image matters, so you can wave through each pick before it lands. The image goes into your own media library, so it stays put even if the original link later breaks.

Outcome

The post has a featured image, pulled into your media library and assigned, with alt text set.