Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Add Post Attachment as Featured Image in WordPress

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.

How to Add Post Attachment as Featured Image in WordPress

Why Add Post Attachments as Featured Images?

An eye-catching featured image encourages visitors to check out more of your content, so it is an important way to get more user engagement and increase pageviews.

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.’

How to automatically set the featured image in WordPress

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.’

Adding a WordPress thumbnail automatically

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.

How to generate thumbnails automatically in WordPress

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.

Adding post attachments as a featured image in WordPress

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.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

6 CommentsLeave a Reply

  1. 3orod

    Thanks a lot , you help me

    • WPBeginner Support

      Glad we could be helpful :)

      Admin

  2. Wally

    Fantastic. I’m working with a new Genesis framework child theme, and although I’m a pretty good coder, I had no clue where to go in the framework to accomplish this. Great plugin. Thanks!

  3. Beth

    I have used a Slider at the top of my core site pages. I do not have (or want) images on the page other than the slider at the top. How do I set this slider image to be the image that shows up on social media without it showing up on the page. I know how to do this on standard pages, but I have never tried it outside of that. It’s probably a template issue that will require scripting, but I wanted to double check before I got too far. I can’t find anything that seems to address this issue.

  4. Keith

    I have been working on learning WP for the past few weeks, but there are so many issues that arise. I hv looked at video after video, even You Tube videos, some are helpful but are time consuming. I would like to be able to build websites and was wondering If there Is a course in my city or a mentor that could provide direction.

    Thanks!!

    • WPBeginner Support

      Keith, we’d recommend you to subscribe to our YouTube Channel. We have some videos tailor made for beginners, and we will be adding more videos regularly. Let us know what you would like to see and we will try to cover it up.

      Admin

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.