Support » Plugins and Hacks » Related Posts via Taxonomies » [Plugin: Related Posts via Taxonomies] Add thumbnails
4 years, 6 months ago
I have revised your related taxonomy plugin to include thumbnails if one is available. See revised code here (starting line 141):
see above answer.
Which of the plugin files is this which youve changed?
Would love to have thumbnails working but havnt managed to sort it out yet.
OK figured it out, would it be possible to use TimThumb to resize the images to a standard size?
Sorry I should really try doing this myself before asking questions.
I changed ‘medium’ to ‘thumbnail’ on line 142, then use the wordpress media settings to change size of thumbnail.
Many Thanks for posting this, you’ve saved me lots of time 😀
4 years, 3 months ago
I changed the code file and line 142 display.php put the parameter of my thumbnail, but it did not work!
Will I have to put some other code in php single.php.
4 years ago
This code did not work for me. Have you tested with WordPress 3.5? Related posts are still displaying in list format without featured image (thumbnail).
Yes this definitely still works. Include a link to pastebin of your display.php code and what theme you are working with. Does your theme support featured images?
3 years, 11 months ago
I’m using the exact code you posted, and my theme does support featured images, bust still no luck. I’m using WordPress 3.5.1.
3 years, 9 months ago
@brokenflipside thanks for implementing this. I cant seem to link the thumbnail to the post without breaking the code. How would I wrap $the_thumbnail with<a href="' . get_permalink( $post_id ) . '" title="' . get_the_title( $post_id ) . '">?
<a href="' . get_permalink( $post_id ) . '" title="' . get_the_title( $post_id ) . '">
Thanks in advance!
3 years, 7 months ago
I need this code to show only the thumbnail (without title) and to have a permalink on it.
3 years, 6 months ago
Thanks! Works perfect!