WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] Not working, version 3.4.1 and custom template (44 posts)

  1. djevrek
    Member
    Posted 2 years ago #

    After i updated plugin half hour ago, it's stoped showing related posts. I''m using custom template and WordPress 3.3. Also, i cant see related posts even on edit page in that metabox, and after i make some changes and update post.

    If you want, i can include my custom tempplate in my next message.

    Also, i found another bug with your custom test template for random (yarpp-template-random.php). You're using just <?php query ?> instead of <? WP_Query ?> and that shows up an error when no related posts are found out.

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

  2. protesto
    Member
    Posted 2 years ago #

    Same here.

  3. dbm44
    Member
    Posted 2 years ago #

    Same here, updated to latest version and now have no related posts anywhere.

    Has all been working OK over last year and more than 100 posts.

    WordPress 3.3 and custom template

    Match threshold 2
    Titles do not consider
    Bodies do not consider
    Categories do not consider
    Tags require at least one Tag in common

  4. Onlineradio
    Member
    Posted 2 years ago #

    "After i updated plugin half hour ago, it's stoped showing related posts."

    I have this problem also. But i'm not using custom template

  5. cfryal
    Member
    Posted 2 years ago #

    Same here -- custom template, self-hosted WordPress installation, upgraded WP to 3.3, upgraded YARPP to 3.4.1, then related posts disappeared (as in: whereas with previous versions I had plenty of matches, now I have none -- 900+ posts). I'm also running qTranslate, with content in English and Japanese.

    Match threshold: 1
    Titles: Consider with extra weight
    Bodies: Consider
    Categories: Consider
    Tags: Do not consider [I don't use tags]

    I got Experiments and have tried rebuilding the cache with different Relatedness options, but no luck.

  6. the1path
    Member
    Posted 2 years ago #

    Same and also the plugin options screen seems to be broken (less options and toggles not working)

  7. chadrew
    Member
    Posted 2 years ago #

    I'm sure mitcho will answer this soon, but for now have you guys tried 3.4.1b5? It fixed many issues for me.

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

  8. the1path
    Member
    Posted 2 years ago #

    b5 seems to be an older version than the straight 3.4.1? According to my install anyway.

    Made no difference to the plugin option screen. Still broken.

  9. chadrew
    Member
    Posted 2 years ago #

    You're right, sorry.

  10. Takahashi Fumiki
    Member
    Posted 2 years ago #

    Yarpp dosen't work, but it's OK. It means extended feature is useless.
    What the most terrible is Yarpp breaks normal post_content.

    Here's example.

    I'm plugin author and my plugin have price a list page with custom post type named 'subscription'.
    This is very simple.
    This list is created by wpdb->get_result and foreach. Not wordpress loop.
    But as a result, apply_filter('the_content', $post->post_content) returns anothor posts post_content.

    I think WP3.3 changes loop structure so that Yarpp has been broken.
    I hope it will be fixed soon.

  11. goormand
    Member
    Posted 2 years ago #

    b5 didn't make a difference for me, so activated debug...

    WordPress database error: [Unknown column 'wp_posts.ID' in 'on clause']

    Sounds like "wp_" was assumed to be the default prefix even though it's not the case on my wordpress instance...

  12. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @djevrek thanks for the bug report on yarpp-template-random.php . Does it work for you if you change it to query_posts instead of query?

    @the1path I think you have a totally different problem... I've responded to you in another thread.

    高橋さん、 are you using YARPP 3.4.1? YARPP 3.4 had an issue with the $post reference.

    @goormand you're totally right! Thank you, and my apologies. I just fixed this and pushed a 3.4.2b1:

    http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.4.2b1.zip (try link in a few minutes)

  13. goormand
    Member
    Posted 2 years ago #

    Works now...

  14. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Fantastic, thank you! Will push out 3.4.2 in a bit...

  15. timcook
    Member
    Posted 2 years ago #

    sorry to be bring bad news, I downloaded 3.4.2b1 and it didn't work and have just tried the 3.4.2 available via wordpress plugin downloads and it still doesn't give any related posts.

    http://www.harrogate-news.co.uk is the website

  16. timcook
    Member
    Posted 2 years ago #

    Have sorted, installed YARP Experiments and cleared the cache.
    Great plugin!

  17. Sulaiman
    Member
    Posted 2 years ago #

    I am also have problem. I couldn't find the related post it's displaying me "No Related Post." When other users publishes their own article it shows them the related post but for me it's doesn't show the related post the user who updated the plugin using their own account will not let them show the related post i don't know why it's difference from the YARPP 3.4.2 and 3.3.3 as in the older version of the plugin seem working fine with the custom template. And is there any possibly way get fixed this issue or downgrade back to older version?

    The Articles which is published by me only it doesn't show the related posts. When i used to publish the article from another account it seem working but for some articles aren't showing the related post... @mitcho Please let me know how would i resolve this?

  18. José Luís
    Member
    Posted 2 years ago #

    @timcook, also installed YARPP Experiments (with YARPP 3.4.2). After DEACTIVATING DBCache, I finally cleared and rebuilt the cache (couldn't find the "sort" option though).

    @mitcho, related posts now show up if I do NOT use custom template. Otherwise, it takes _forever_ to load the page...

  19. timcook
    Member
    Posted 2 years ago #

    try installing YARP Experiments plugin - it gives you more features on YARP. I cleared the cache but didn't press the re-build.

  20. José Luís
    Member
    Posted 2 years ago #

    try installing YARP Experiments plugin - it gives you more features on YARP. I cleared the cache but didn't press the re-build.

    Already installed it and could clear (and rebuild) the cache after deactivating DBCache (didn't know there were incompatibilities).

    Now my related posts now show up if I do NOT use custom template. Otherwise, it takes _forever_ to load the page...

  21. Onlineradio
    Member
    Posted 2 years ago #

    3.4.2 not work again. I not use custom template. "Not related Post"

  22. José Luís
    Member
    Posted 2 years ago #

    I don't understand: I deactivated DB Cache Reloaded, used YARPP Experimental, cleared the cache and rebuilt it, and YARPP 3.4.2 still doesn't work with my custom template (that worked fine on YARPP 3.3.3)...

    What were the changes to template rules? What should I change? Is there a tutorial to this new version templates?

  23. cfryal
    Member
    Posted 2 years ago #

    Thanks for 3.4.2 -- after upgrading and flushing the cache, it looks like it's working again. (Just in case it matters, my database prefix isn't wp_ so perhaps that was the problem in my case.) Good work!

  24. José Luís
    Member
    Posted 2 years ago #

    AHA! FOUND IT!

    My old template (based on John Godley's Related Thumbnails) showed related entries with this loop:

    <?php if ($related_query->have_posts()):?>
    <ol>
    <?php while ($related_query->have_posts()) : $related_query->the_post(); ?>
    [...]

    while mitcho's thumbnail template uses:

    <?php if (have_posts()):?>
    <ol>
    <?php while (have_posts()) : the_post(); ?>
    [...]

    When I removed the $related_query reference it worked!

    Now the interesting questions: why did it work before? what has changed?

  25. José Luís
    Member
    Posted 2 years ago #

    Another question: is my impression or the maximum number of related posts is limited to 5? If I set it to 4, it shows only four items. But any number greater than five shows only five related posts (no matter if using custom templates or not)...

  26. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    José: huh, have_posts() and $related_query->have_posts() should be the same in this context, but are you saying that (a) $related_query->have_posts() doesn't work or (b) $related_query->have_posts() works but is slow?

    The maximum is not five... it is arbitrary. But if you want to really display more related posts, you should also lower the "match threshold," which is in the "relatedness" settings. If you don't see that box, you can get to it from the "screen options."

  27. djevrek
    Member
    Posted 2 years ago #

    Fixed, working for me after last update. If anyone wants to see, this is my code (i also changed query to standard wp, like Jose pointed out before)

    http://pastebin.com/QR9WFF5L

  28. frudrew
    Member
    Posted 2 years ago #

    Hi Michael,

    I can't seem to change my custom template. Was working before the most recent update.
    No I just have "No Related Photos"
    Really annoying as I really loved your plugin.
    I've download "experimental" but no change.
    Hope you can help

    Cheers
    Andrew

  29. samtulana
    Member
    Posted 2 years ago #

    After updating the plugin related posts is not displayed... Why is that? One of the posts http://www.samtulana.ru/7lay2jb8e777f5tm/

    Thank you...

  30. Takahashi Fumiki
    Member
    Posted 2 years ago #

    Hi mitcho!

    I used 3.4.1.
    Now I downloaded 3.4.2b1 and it seems to be fixed.
    (the latest seem to have no related posts, but it's OK.)

    What annoying me is this:

    My plugin Literally WordPress has price list with custom post type "subscription".
    Here is example.

    https://takahashifumiki.com/?lwp=pricelist

    This price list is generaget like this.


    $prices = $wpdb->get_results($sql);
    foreach($prices as $price){
    //Make Table
    echo '<td>'.apply_filter('the_content', $price->post_content).'</td>';
    }

    This output results as another post's contents.
    This never happened in WP 3.2.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic