I have revised your related taxonomy plugin to include thumbnails if one is available. See revised code here (starting line 141):
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 😀
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.
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?
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.
@brokenflipside thanks for implementing this. I cant seem to link the thumbnail to the post without breaking the code. How would I wrap
<a href="' . get_permalink( $post_id ) . '" title="' . get_the_title( $post_id ) . '">?
Thanks in advance!
I need this code to show only the thumbnail (without title) and to have a permalink on it.
- The topic ‘[Plugin: Related Posts via Taxonomies] Add thumbnails’ is closed to new replies.