• Hello!

    Is it possible to take the Secondary Image and use it as the Primary Thumbnail for Posts in the Recent Posts Widgets (or any Post Widget)?

    Also, I don’t want the Secondary Image to display on the Post page itself…because I am using the Secondary Image as a Custom Thumbnail Image for the post it is attached to and not as a post image.

    What is the best way to achieve this?

    Thanks!

    http://wordpress.org/extend/plugins/multiple-post-thumbnails/

Viewing 1 replies (of 1 total)
  • Plugin Author Chris Scott

    (@chrisscott)

    Assuming the widget uses WordPress’ get_the_post_thumbnail() function, you should be able to filter get__thumbnail_id_metadata and return the post ID of the secondary thumbnail to override the featured image’s post thumbnail ID being returned.

Viewing 1 replies (of 1 total)
  • The topic ‘Secondary Image Used As Primary Thumbnail for Recent Posts Widgets’ is closed to new replies.