Daily Tip: How to Automatically Set the Featured Image in WordPress

Do you sometimes forget to set the featured image on your WordPress posts? Here’s a quick handy snippet that will automatically set the featured image by grabbing the first image of the post. If you want to select your own featured image, it will display your selection instead.

Add this snippet to your theme’s functions.php file or create your own little plugin for it, whichever you prefer: