WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] 3.4 images problem using template (45 posts)

  1. polle001
    Member
    Posted 2 years ago #

    I just upgrade to YARPP 3.4 and have a problem. All the images for related are from my latest post. I haven't publish anything else, so I don't know if it uses the latest post or it just picked the latest post image available when I upgrade.

    I use a template and I have specified a custom image for the posts that does not have one.

    Before all images where correct and if a post does not have image, the specified one showed up.

    Now the complete site shows the image of my latest post.

    How can I fix this ?

    Thanks.

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

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Can you send me a link? Also, what YARPP template file are you using?

  3. polle001
    Member
    Posted 2 years ago #

    Hi mitcho.

    I am using a custom template, if you want I can mail you everything.

    I deleted the txt files timthumb created and now not a single post have related posts. I changed from 5 to 1 the threshold and some came back, then tried 5 again and nothing, none has related posts.

    Thanks.

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Please do email me. x@x.com, x=mitcho.

  5. avil
    Member
    Posted 2 years ago #

    Mitcho .. Even I've got the same problem on by blog [ see here ] ..Its the same on all single post pages.

    where after the update to YARPP 3.4.The first images are not display..but only the default image is displayed.

    I'am using a custom template.

    Can I also send you my custom template code file .

    Thanks.

  6. anothertexasfamily
    Member
    Posted 2 years ago #

    Mitcho - Same thing with me, happened right after the update. I've tried tweaking a few things and am having several problems: (1) Only one image will show for all posts, (2) Can get no more than 2 related posts to appear, and (3) Now the same 2 related posts appear on everything.

    I've tried with a custom template and the standard YARPP settings...both with no luck.

  7. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @avil, please send me your template too. But what is the issue... you lost your related posts? or that they don't display their correct thumbnails?

  8. chadrew
    Member
    Posted 2 years ago #

    Hello folks,
    I just upgraded to 3.4 and ran into some problems with custom templates that sound similar to yours. "Automatic display" and widget seem to be working fine, if I'm not using a custom template.

    First of all, my custom template which worked perfectly with all previous versions is no longer working (at all):

    http://pastebin.com/NpXiQUsb

    Second, I tried using the default yarpp-template-list.php bundled with YARPP 3.4, and with 20 related posts it returned the same two posts, over and over again (or to be more precise, 19 times one post, and 1 time another post, on every page).

  9. avil
    Member
    Posted 2 years ago #

    @mitcho - The related posts are missing and the images are lost on all posts where only the default image is displayed.Sent you my template.

    - Thanks

  10. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @chadrew: "Second, I tried using the default yarpp-template-list.php bundled with YARPP 3.4, and with 20 related posts it returned the same two posts, over and over again (or to be more precise, 19 times one post, and 1 time another post, on every page)." Does this happen when you turn off the custom template?

  11. chadrew
    Member
    Posted 2 years ago #

    @mitcho that seems to happen whenever I call <?php related_posts(); ?> manually, regardless if with custom template or not. I guess this problem is not related to custom templates after all.

    "Automatically display related posts": everything's fine (even when using the default custom template).

    Widget: everything's fine, likewise.

    Place <?php related_posts(); ?> manually: the problem of same post appearing as described above.

  12. anothertexasfamily
    Member
    Posted 2 years ago #

    Mitcho - I keep trying to tweak settings but am having the same trouble as chadrew. I am getting the same four 'related posts' for everything, even when not related in any way. I have turned off the custom template and still have no luck. I am just going to turn off YARPP until this gets resolved.

  13. chadrew
    Member
    Posted 2 years ago #

    On an unrelated note, I solved the trouble with my custom template by adding global $post; to it. I'm not sure why that's needed since the template seems to have its own loop, but I'm not a programmer so I can't say :)

  14. polle001
    Member
    Posted 2 years ago #

    @chadrew can you please share more about that ?

    Add it where ? how ? etc...

    Thanks.

  15. anothertexasfamily
    Member
    Posted 2 years ago #

    chadrew - any chance you would be willing to send your custom.php to me? I can't get mine working.

  16. johnnyngn
    Member
    Posted 2 years ago #

    I got the same problem. I had to un-install the YARP 3.4 version and re-installed 3.3 version, anything with 3.4 version won't work. Everything is working fine now. Guess 3.4 version is not ready yet for those of us who have customized templates.

  17. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @chadrew, thanks, that makes sense that some templates would get broken by the lack of global access to $post. Here's 3.4.1 beta 1 which adds back the global $post reference:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.4.1b1.zip

  18. chadrew
    Member
    Posted 2 years ago #

    Thanks a lot, mitcho :)

  19. johnnyngn
    Member
    Posted 2 years ago #

    Just tried the 3.4.1b1.zip version. Didn't work for me either.

  20. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    I think I resolved the issue with related_posts(). Please try this:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.4.1b2.zip

    @johnnyngn what exactly is the problem you're having?

  21. johnnyngn
    Member
    Posted 2 years ago #

    I am getting the same problem. The related posts stayed the same with every post. I'll try the new one.

  22. johnnyngn
    Member
    Posted 2 years ago #

    Thanks Mitcho. The 3.4.1b2.zip works great. Everything is good now.

  23. chadrew
    Member
    Posted 2 years ago #

    Fantastic, mitcho... This version solved all problems for me.

  24. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Fantastic! Waiting for just a few more reports and then I will push this as 3.4.1.

    Thank you all for your quick bug reports and cooperation!

  25. anothertexasfamily
    Member
    Posted 2 years ago #

    Mitch - 3.4.1b2 corrects the problem on my blog for not showing the same four posts, but it seems like half the posts that formerly had related posts are reporting 'no related posts' now (with custom and standard settings). Also, when using my custom.php the thumbnails in the posts are no longer working, which worked fine in the previous version. Any tips?

  26. johnnyngn
    Member
    Posted 2 years ago #

    It took about 15 minutes for the new version to pickup the related posts more accurately again. Everything is more accurate now.

  27. johnnyngn
    Member
    Posted 2 years ago #

    Just tried the 3.3.3 version. It is somehow more accurate in showing the related posts than the latest version. ???

  28. johnnyngn
    Member
    Posted 2 years ago #

    Ran a few tests. The YARP 3.3.3 version is accurate to the teeth, while the latest version is a "hit and miss" on displaying related posts.

  29. anothertexasfamily
    Member
    Posted 2 years ago #

    johnnyngn - I agree. I am sticking with 3.3.3 for now.

  30. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @anothertexasfamily can you send me the custom template you're using? I'd like to resolve the thumbnail issue.

    @johnnyngn Are you getting false negatives or false positives? I.e., new related posts which aren't actually related, or missing related posts which showed up with 3.3.3? Note that it's possible that results aren't *exactly* the same across the versions, but I don't have any immediate idea why they would be different.

    I'd appreciate it if you try changing some of the "relatedness" options in YARPP 3.4 which will clear the cache and force things to recompute.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic