Catch that Image

Function that will look for the featured image first, then if no featured image it will look for the first image in the post, then if no image in the post it will show the default.png in your theme’s images folder. (you have to put the default.png in your theme of course.)

Functions File:


Theme File:


Leave a Reply

Your email address will not be published. Required fields are marked *

89 − 84 =