Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] YARPP and WMPL: Repeated posts (2 posts)

  1. silverks
    Posted 6 years ago #

    Hi there,

    I just integrated YARPP into my blog theme, using and I'm using WPML as well. The problem is that in the translated language (ms), the Related posts list contain repeated links to similar posts.

    See it here: http://www.khairul-syahir.com/ms/topics/fotografi/2010/trip-cuti-easter-2010-diperbaik.html
    The related posts area is right under the social sharing buttons.

    The strange thing is that it works fine if viewed in English, i.e. no repeated entries.

    This is the code that I used in the theme loop.php file:

    if (function_exists('related_posts')) {
    } else {
    	echo '<p>';
    	_e('Install the Yet Another Related Posts Plugin (YARPP) to display the related posts list.','ksv3');
    	echo '</p>';
    } ?>

    (Oh and yes the code is in the Loop)


  2. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 6 years ago #

    YARPP is not yet WPML-aware, so if you have translated posts it's possible that each of their translations show up individually. In this case, though, WPML's link-changing script made it so that they both end up being the localized ms version, so it looks like there are two.

    I've thought about adding WPML-awareness in the future, but haven't gotten there yet. Sorry about that.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yet Another Related Posts Plugin (YARPP)
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic