Relevant - Related Posts by BestWebSoft
[resolved] Thumbnail images? (3 posts)

  1. lilymariec
    Posted 2 years ago #

    Does this plugin show thumbnails of the related posts? I couldn't find that option in the settings.



  2. darkhorse20
    Posted 2 years ago #

    An option to show the post thumbnails is a much needed feature for this plugin. If it had this feature built in, I'd probably use this plugin over the other Related Posts plugins out there.

    I took a peek into the plugin code and adding the thumbnail isn't too difficult. All the plugin needs is a call to the featured image for the post within the plugin's loop. Something like:
    <?php if (has_post_thumbnail( $post->ID ) ): $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'thumbnail' ); echo '<img src="'.$image[0].'" alt="'.get_the_title().'" />'; endif; ?>

    C'mon developer, let's see it happen!

  3. bestwebsoft
    Plugin Author

    Posted 2 years ago #

    Hi all,

    Thank you for contacting us, currently this functionality is really unavailable, we will consider your suggestion and probably add this option in the next update of the plugin.

    BestWebSoft Support Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.