WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] How to display thumbs before related post in sidebar widg (14 posts)

  1. arundent
    Member
    Posted 3 years ago #

    How to display thumbs/images before related post in sidebar widget.

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. Famous
    Member
    Posted 3 years ago #

    I used the sidebar widget and links will show, however no thumbnails (photo) shows up? I dragged yarpp-template-thumbnail.php and yarpp-template-photoblog.php into my template and selected them in the drop down when checking the box: Display using a custom template file.

    However nothing happens? I just keep getting: Related Photos, No related photos.

    I changed the settings to a max threshold of: 1 and unchecked and checked just about everything.

    I am using the latest 3.1.2 wordpress with the latest buddypress. What could be the problem?

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    You have to choose the template in the widget's options, not in the YARPP options screen. Does that help?

  4. Famous
    Member
    Posted 3 years ago #

    I had already selected the template in the widget, however nothing happens.

  5. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    @Famous which template are you using?

  6. Famous
    Member
    Posted 3 years ago #

    Hello Mitch, I am using a child theme to buddypress' default theme, without much of a change.

  7. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Sorry, that's not what I meant. Which YARPP template did you choose to use?

  8. Famous
    Member
    Posted 3 years ago #

    I tried both YARPP photoblog and thumbnail.

  9. Famous
    Member
    Posted 3 years ago #

    I run a basic site without the frills, so I cannot be the only one have problems here? I created a sidebar and placed the YARPP widget in it and activated both of the above (YARPP photoblog and thumbnail) and neither one would show any pic, any ideas?

  10. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 3 years ago #

    Well, the photoblog template requires the Yet Another Photoblog plugin, so you might want to check that out. The thumbnail one should work out of the box, though. Have you looked at the code it's producing on your site? Is it producing an <img> tag, or not at all?

  11. greghummel
    Member
    Posted 3 years ago #

    Hi I'm having the exact same problem. I selected yarpp-template-thumbnail.php and this is the wedsite display code example. This does not look correct to me.

    <h3>Related Photos</h3>

    The plugin works fine if no tempaltes are used.

    Thanks

  12. Famous
    Member
    Posted 3 years ago #

    This is the code I show:

    <div id="yarpp_widget-3" class="widget widget_yarpp_widget">
    <h3>Related Photos</h3>
    <p>No related photos.</p>
    </div>

    Thanks Greg, I knew I couldn't be the only one.

  13. chadrew
    Member
    Posted 3 years ago #

    I'm not sure if this helps, but yarpp-template-thumbnail.php checks for has_post_thumbnail function. As explained in the link below, your theme has to support post thumbnails - and the post has to have a thumbnail as well.

    http://codex.wordpress.org/Function_Reference/has_post_thumbnail

    IF both of these things are true, then I suppose it's a problem with the plugin.

  14. Famous
    Member
    Posted 3 years ago #

    thanks @chadrew I got it in functions. I didn't really think about it, but I am using this for the attachment.php and not posts. Does it work with attachment.php?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic