Support » Plugins and Hacks » [Plugin: WordPress Related Posts] Thumbs not showing

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m having the same issue, did you ever get it resolved?

    thank you.

    open the plugin file: “wp_related_posts.php” and search for:

    $related_posts as $related_post

    and replace:

    if ($wp_rp["wp_rp_thumbnail"]){
    			$output .=  '<a href="'.get_permalink($related_post->ID).'" title="'.wptexturize($related_post->post_title).'"><img src="'.get_post_meta($related_post->ID, $wp_rp["wp_rp_thumbnail_post_meta"], true).'" alt="'.wptexturize($related_post->post_title).'" /></a>';
    		}

    with:

    if ($wp_rp["wp_rp_thumbnail"]){
    			$article_thumbnail = wp_get_attachment_image_src ( get_post_thumbnail_id ( $related_post->ID ), 'product_preview');
    			$output .=  '<a href="'.get_permalink($related_post->ID).'" title="'.wptexturize($related_post->post_title).'"><img src="'.$article_thumbnail[0].'" width="'.$article_thumbnail[1].'" height="'.$article_thumbnail[2].'" alt="'.wptexturize($related_post->post_title).'" /></a>';
    		}

    now the plugin uses the article thumbnail..

    cheers Dr.Brems

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress Related Posts] Thumbs not showing’ is closed to new replies.