Do you want to set the WordPress featured image automatically?
If you recently switched to a theme that uses thumbnails, then there may be lots of empty space on your homepage and blog pages. However, adding the missing featured images to your previous posts can take a lot of time and effort.
In this article, we will show you how to automatically use post attachments as featured images on your WordPress website.
Why Add Post Attachments as Featured Images?
Featured images may also appear in search results and social media feeds. This means a great featured image can even increase your blog traffic.
However, if you recently switched to a WordPress theme that displays featured images, then adding thumbnails to all your previous posts can be a lot of work.
Thankfully, you can tell WordPress to use an image from the post as the featured image. This is an easy way to update all your previous posts. That said, let’s have a look at how to use post attachments as featured images in WordPress.
How to Add Post Attachment as Featured Image in WordPress
The easiest way to add featured images automatically is by using Auto Featured Image. This free plugin can generate a featured image for all your pages, posts, and custom post types with the click of a button.
The first thing you need to do is install and activate Auto Featured Image. For more details, see our step-by-step guide on how to install a WordPress plugin.
Upon activation, go to Auto Featured Image » Settings. You can now open the ‘Generation Method’ dropdown and select ‘Find in post.’
By default, the plugin can generate featured images for pages and posts.
To change these settings, simply uncheck either of the boxes next to ‘Pages’ or ‘Posts.’
With that done, select the ‘Generate Images’ tab.
You can now open the ‘Post Type’ dropdown and choose either ‘Posts’ or ‘Pages’, depending on the content where you want to add featured images.
Auto Featured Image will now scan your WordPress blog and show the total number of pages that don’t have featured images.
To go ahead and add post attachments as the featured image, click on the ‘Generate Featured Images’ button.
After a few moments, you’ll see an ‘All Done’ message.
Now, simply visit your WordPress website to see the new featured thumbnails in action.
We hope this tutorial helped you learn how to use post attachments as featured images in WordPress. You may also want to learn how to create automated workflows in WordPress or check out our list of the best SEO plugins and tools you should use.