How to Automatically Set the Featured Image in WordPress

A featured image is a very significant part of any website. It represents the mood, contents, or theme of a post or page of any website. Sometimes you don’t have a featured image for a post and you want to set featured image the first image automatically by grabbing the first image of your article.

Here’s the simple way to set featured image automatically.

Hints: Add the following code snippet to the functions.php file of your active WordPress theme to automatically set the featured image for your posts. If you add a featured image to a post, then it will override this code and display your featured image instead.

Using Auto Post Thumbnail Plugins


There’s another way to automatically set the featured image by using third party auto post thumbnail WordPress plugins. These auto post thumbnail plugins which will help you to generate featured image easily and quickly from first image in a post or any custom post type.

1. Image Fetcher

Image Fetcher - Featured Image Convertor

Image Fetcher is a simple plugin that automatically converts image link to the featured image easily and quickly! Basically you can start converting by just one click!

More Info / Download

2. Auto Post Thumbnail

Automatically generate the Post Thumbnail (Featured Thumbnail) from the first image in post or any custom post type only if Post Thumbnail is not set

More Info / Download


Editorial Note: When you buy through links on our site, we may earn an affiliate commission. Commissions do not affect our writers' opinions or evaluations.