First off, let me just say YARPP is an awesome plugin. Haven't had any problem with it until now.

I'm using a custom template for YARPP. I remember it being fine a day ago but it is now printing two of the same related articles. The custom template I'm using is the first sample you shared in your post here: http://mitcho.com/blog/projects/yarpp-3-templates/.

I've tried turning off "automatically display related posts" but no luck. The related article list is being displayed in custom category pages and as I understand it (which is not much), I have to manually use this code to call YARPP: <?php related_posts(); ?>.

You're right... if you turn off the "automatically display" option, you'll want to add related_posts() to your template. Are you still getting duplicates? Does this happen on every page? Does it happen with different YARPP templates as well?

@valandilearfalas... this is quite odd. You may want to try clearing the cache completely once, by clearing the table wp_yarpp_related_cache. Or, on YARPP 3.2 (brand new!) add &action=flush to the end of the URL of your YARPP settings page, and reload.

Hi all—if any of you are able to use a custom YARPP template to print the ID using get_the_ID(), I would appreciate it. I would like to know whether it's actually pointing to different ID entries or not.

Visit the Yet Another Related Posts Plugin Options page by adding &action=flush at the end of the URL or simply visit the below URL, replacing with your site:http://your-site.com/wp-admin/options-general.php?page=yet-another-related-posts-plugin/options.php&action=flush

Just to let everyone know. I use YARPP and RPS and am having the same problem.

Since I use RPS to show the posts on the site, the option "automatically display" of YARPP is always off. I tried to put it on for testing and the behavior is exactly the same.

The problem disappears when I clean the cache with the flush, but after putting one or two articles, the problem returns. This happens in the post I just published and affects some of the oldest too. Sometimes, in the admin panel, after publishing the post, the list of related posts is perfect but when viewing the article on the site, is doubled or tripled ... Other times have doubled in the admin panel itself.

YARPP is great, but this bug is too big to be ignored like that. The flush stuf is a paliative, not a solution... So, I'm also remove YARPP, at least for now. I hope the solution comes soon and when the plugin have a new version, I will try again, but for now, there is no other solution besides remove YARPP... I'm sad, because I don't know any other related post plugin with so accuracy, but is better use a plugin that's not so good, but functional. I'm really tired of clean my cache every time that I put a new post or edit some post.

@valandilearfalas thanks for adding the IDs to your output. So it indeed looks like the same exact ID entries are being duplicated in the cache. Could you (or anyone else) try making a slight code change, flushing the cache, and seeing if this helps?

I'm looking at the line:

$newsql .= "\n group by id \n";

in magic.php.

Could someone try changing this to:$newsql .= "\n group by ID \n";
instead and flushing the cache (as I posted above) and seeing if this helps? Thank you all!

Tks for the sugestion, but I use Related Post Slider so I have to use YARPP or WordPress Related Posts. I don't love WRP, the only parameter taken into consideration are the tags. But like I said, better work a little below my expectations than provide repeat links for my visitors...

I will continue following the discussion about it. Disabled, but not extinguished the YARPP and I hope to return to it once the problem is resolved.