If you are one of the WordPress users, you might know about the featured image in the Write post panel. Today I will tell you how to set a featured image automaitcally in your blog post. Some people find this task quite boring and time consuming to a speacial featured image to there blog post and then to include it in the post as well. So by the bit of code below you will not be worrying a lot now :)
Add the Featured Image Automatically in WordPress
In you theme's funtions.php file go at the end and add the below code before ?>
/*Add the Featured Image Automatically in WordPress*/
This function will check if you have set a custom image as a featured image, it keep it as it is. Otherwise if there is no featured image found, it add the first image from the post as the featured Image.