WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] [Plugin: Yet Another Related Posts Plugin] 3.5.1- No Related Posts (33 posts)

  1. Nile Flores
    Member
    Posted 2 years ago #

    I have over 725 posts published on my site. Prior to this most recent update, in version 3.4, the related posts appeared.

    Now, they are not appearing. I am using a custom template, but even if I choose to display posts automatically, I still get "No related posts."

    I find it highly unlikely that I have no related posts on my site...lol.

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

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry to hear this happened. I would suggest you first go to your YARPP options and make sure your settings are what you had them at, or rejigger them slightly, perhaps for example by lowering the match threshold. If you don't see these options immediately, you can go to "screen options" in the top right and show "the pool" and "relatedness" options.

  3. urban75
    Member
    Posted 2 years ago #

    It's stopped displaying on new posts on one of my WordPress installations too after the recent upgrade.

    I've got thousands of posts - http://www.wirefresh.com - but it only seems to be new posts affected.

    Nothing had been changed in my installation - it seems to have just stopped working on new posts (although there appears to be no problem on a near identical install here http://www.urban75.org/blog ) .

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @urban75 please try fiddling with the options, though, like maybe lowering the match threshold slightly. That may give it the kick it needs.

  5. urban75
    Member
    Posted 2 years ago #

    Hi - cheers for the swift answer. The threshold tweak seems to have worked so far!

  6. Denny Brown
    Member
    Posted 2 years ago #

    New Yarpp user. New installation. Got the same symptom ("No related posts.") after initial install.

    Based on this thread, I tweaked the match threshhold, and it all started working.

    It looks like this version does need a "kick" to get started.

  7. Nile Flores
    Member
    Posted 2 years ago #

    I have the posts that eventually showed up after some time WITHOUT adjusting the threshold.

    However, I have another WP user here and we do not see anywhere to adjust the threshold within the Settings>YARPP.

    So where is this option to adjust the threshold????

  8. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    @dennispbrown the default settings are a little better suited for sites with a decent amount of content. Tweaking the match threshold is the right move.

    @blondishnet go to "screen options" in the top right to make the "relatedness" options display.

  9. notkristina
    Member
    Posted 2 years ago #

    I changed my threshhold to 1 and told the plugin to consider everything, but I'm still seeing no related posts on my newer posts, where there used to be lots. I've looked at all the options and I can't think what could be wrong. I told it to look at any post published in the last three years, even if it's newer than the current post, and I cleared the cache. I can see in the admin that these posts have related items that meet the criteria, but they're not displaying on the frontend. Is there anything else that could be wrong?

  10. jlomaga
    Member
    Posted 2 years ago #

    I've been having this issue with WP 3.3.1 and every version of YARPP since 3.3.3. 3.3.3 is the only version that works correctly. Every new post that I I publish no matter the settings will show no related posts, and it also causes issue with my theme. Each new release I give it a try and sure enough it stops working and I have to go back to 3.3.3. Don't know what has changed since that release but something isn't working well.

  11. kdeathboo
    Member
    Posted 2 years ago #

    I had exactly the same problem. It's always saying "No related posts" and I had to reset the treshold, and it worked. However, it's only a temporary fix as the "no related posts" problem come back once in a while, particularly when publishing a new post or when someone is publishing a comment on a post. Since I'm using YARRP on a network, it's anoying to reset the treshold every day.

    I tried all the previous versions and the beta too, and the last version which is working correctly is 3.3.3 ... It's sad since I liked the fact that we could use custom taxonomy with the latest version.

    Is there any solution found?

  12. brettbum
    Member
    Posted 2 years ago #

    not working for me either on a site that has run it for a long time.

    tried all of the above, plus deleting the tables, deactivating, deleting plugin and reinstalling, nothing.

    Ended up having to leave it uninstalled for now and used a Contextual Related Posts plugin instead. Hope it gets fixed eventually, been using this for a long time.

  13. tanmayjalan
    Member
    Posted 2 years ago #

    Same problem: No related posts for you.

  14. seandfeeney
    Member
    Posted 2 years ago #

    Any resolution to this? I have this same issue.

  15. dompl
    Member
    Posted 2 years ago #

    Plugin is not working with WP 3.4. Any chances for fix?

    No related posts.

    Excellent tool, shame it's not working.

    Any chance for update please?

  16. danno63
    Member
    Posted 2 years ago #

    Yup, YARP is definitely DOA with WP 3.4.

    I'm using manually placed code with no template. Tried switching to auto and changing the parameters. All I'm getting is "No related posts."

    It's such a great plug-in. Would love to see a fix for this..

    Thanks!
    Dan

  17. dompl
    Member
    Posted 2 years ago #

    This might help you: (sorry, bit messy code)

    <?php $tags = wp_get_post_tags($post->ID);
    				if ($tags) {
    					$tag_ids = array();
    					foreach($tags as $individual_tag) $tag_ids[] = $individual_tag->term_id;
    					$args=array(
    					'tag__in' => $tag_ids,
    					'post__not_in' => array($post->ID),
    					'showposts'=>5, // Number of related posts that will be shown.
    					'caller_get_posts'=>1
    				);
    				$my_query = new wp_query($args);
    				if( $my_query->have_posts() ) {
    
    					echo '<h3>Products related to '. get_the_title() .'</h3>';
    					echo '<ul>';
    					while ($my_query->have_posts()) {
    						$my_query->the_post();
    					?>
    						<li>
    							<h4>
    								<a href="<?php the_permalink() ?>" rel="bookmark" title="Read more about <?php the_title_attribute(); ?>">
    									<?php the_title(); ?>
    								</a>
    							</h4>
    							<a href="<?php the_permalink() ?>" rel="bookmark" title="Read more about <?php the_title_attribute(); ?>">
    								<?php the_post_thumbnail('related-product-thumbnail');?>
    							</a>
    
    						</li>
    					<?php
    					}
    					 echo '</ul>';
    				}
    }
    ?>
  18. danno63
    Member
    Posted 2 years ago #

    I'll add that I've been using YARP without error for a few years now.. so this is definitely not typical for the plug-in.

  19. dompl
    Member
    Posted 2 years ago #

    It's a great plugin, but it's "heavy". The code Ive pasted above will show you related post using tag. You can adjust it the way you want. I paste it straight from my site Under Construction.

    If you're planning on using the featured imaged dont forget to add the support in your functions.php

    add_theme_support( 'post-thumbnails' );
    set_post_thumbnail_size( 150, 150, true ); // Normal post thumbnails
    add_image_size( 'single-post-thumbnail', 250,400, TRUE); // Your thumbnail size
  20. danno63
    Member
    Posted 2 years ago #

    Hi dompl,

    Thanks!

    I actually just added a slightly cleaner version of your code and it works perfectly. I actually ashamed to admit that I've been planning on doing this for a while.. ;)

    Sometimes plug-ins are great for a quick fix, but you're right, most are bloated and only add to taxing the overall system.

    <?php
    //for use in the loop, list 5 post titles related to first tag on current post
    $tags = wp_get_post_tags($post->ID);
    if ($tags) {
      echo 'Related Posts';
      $first_tag = $tags[0]->term_id;
      $args=array(
        'tag__in' => array($first_tag),
        'post__not_in' => array($post->ID),
        'showposts'=>5,
        'caller_get_posts'=>1
       );
      $my_query = new WP_Query($args);
      if( $my_query->have_posts() ) {
        while ($my_query->have_posts()) : $my_query->the_post(); ?>
          <p><a>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></p>
          <?php
        endwhile;
      }
    }
    ?>
  21. azn137
    Member
    Posted 2 years ago #

    Where do you get a copy of 3.3.3?

    Edit: nevermind, found it by changing the url to http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.3.3.zip

    I'll replace 3.5.1 with 3.3.3 and see what happens...

  22. azn137
    Member
    Posted 2 years ago #

    Ok, after a few days of running and posting new posts, I can comfirm that rolling back to 3.3.3 works perfectly.

    By the way, if the update notification bugs you, like it does me, edit the version number in the yarpp.php file, line 6, and change it to 3.5.1.

    Cheers,

  23. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Hi all. Please try this latest beta, which fixes an issue with "no related posts" on some server environments: http://downloads.wordpress.org/plugin/yet-another-related-posts-plugin.3.5.2b2.zip

    Thank you!

  24. seandfeeney
    Member
    Posted 1 year ago #

    This beta didn't work for me. Still seeing posts without any related posts. If I could make a suggestion, could you add a button to select random posts if it can't find any that are related?

  25. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @seandfeeny there is a YARPP custom template that already ships with YARPP which can accomplish this.

    Sean, what happens if you lower your match threshold slightly in YARPP settings? This will clear the cache and force it to recompute things.

  26. seandfeeney
    Member
    Posted 1 year ago #

    I have it set to 1...

  27. azn137
    Member
    Posted 1 year ago #

    @seandfeeney: In theory, if you threshold is low enough, and if you have a relatively good amount of posts, you should get some posts, related or not.

  28. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    @seandfeeney hmm, do you see any posts "related" in the "related posts" box in your post edit screen? (If it's hidden, show it from "screen options." Are you using some caching system like W3 Total Cache or memcached?

    Otherwise, I would suggest you add the YARPP Experiments plugin which can help you flush the cache manually and force it to rebuild as well: http://wordpress.org/extend/plugins/yarpp-experiments/

  29. seandfeeney
    Member
    Posted 1 year ago #

    I do have w3 cache enabled with minify disabled. It does work on some posts but, on the ones that doesn't work, there are no related posts on the edit post page.

    Example... http://wp.me/p14H51-9a

  30. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    If you're getting results on some posts, it's not completely not working... I suggest you add that YARPP experiments plugin to try flushing and manually rebuilding the YARPP cache.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic