WordPress.org

Support

Support » Plugins and Hacks » If no the_post_thumbnail then auto-set it as the first image uploaded?

If no the_post_thumbnail then auto-set it as the first image uploaded?

  • 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!

  • The topic ‘If no the_post_thumbnail then auto-set it as the first image uploaded?’ is closed to new replies.
Skip to toolbar