WordPress.org

Ready to get started?Download WordPress

Forums

Related Posts via Taxonomies
[resolved] Add thumbnails (12 posts)

  1. brokenflipside
    Member
    Posted 2 years ago #

    I have revised your related taxonomy plugin to include thumbnails if one is available. See revised code here (starting line 141):

    http://pastebin.com/ftqp7SPA

    http://wordpress.org/extend/plugins/related-posts-via-taxonomies/

  2. brokenflipside
    Member
    Posted 2 years ago #

    see above answer.

  3. Nick McBurney
    Member
    Posted 2 years ago #

    Which of the plugin files is this which youve changed?

    Would love to have thumbnails working but havnt managed to sort it out yet.

    Thanks
    Nick

  4. Nick McBurney
    Member
    Posted 2 years ago #

    OK figured it out, would it be possible to use TimThumb to resize the images to a standard size?

  5. Nick McBurney
    Member
    Posted 2 years ago #

    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 :D

    Nick

  6. vitorcherulli
    Member
    Posted 1 year ago #

    Hello, okay?

    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.

    Thank you.

  7. unifiedac
    Member
    Posted 1 year ago #

    flipside,

    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).

  8. brokenflipside
    Member
    Posted 1 year ago #

    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?

  9. biellebrunner
    Member
    Posted 1 year ago #

    brokenflipside,
    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.

  10. aronjeney
    Member
    Posted 1 year 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 ) . '">?

    Thanks in advance!

  11. KyduKD
    Member
    Posted 1 year ago #

    flipside,

    I need this code to show only the thumbnail (without title) and to have a permalink on it.

  12. vaninawohlleb
    Member
    Posted 1 year ago #

    brokenflipside,

    Thanks! Works perfect!

    vanina

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic