If no the_post_thumbnail then auto-set it as the first image uploaded? (1 post)

  1. Drew Baker
    Posted 5 years ago #

    Hi Guys,
    I'm trying to find a function that would look to see if a post has the_post_thumbnail set, and if not, then it would use the first uploaded image as the post thumbnail.

    This would make the_post_thumbnail feature backwards compatible for old posts, but more importantly save my users the time required to set the post thumbnail when only one image was used on the post (%90 of all our posts).

    Thanks for the help!

Topic Closed

This topic has been closed to new replies.

About this Topic