WordPress.org

Forums

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

  1. lilymariec
    Member
    Posted 1 year ago #

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

    Thanks!

    https://wordpress.org/plugins/relevant/

  2. darkhorse20
    Member
    Posted 11 months 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
    Member
    Plugin Author

    Posted 11 months 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.

    Sincerely,
    BestWebSoft Support Team

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.