Yet Another Related Posts Plugin (YARPP)
YARPP and WPML, not showing on second language (19 posts)

  1. dstel
    Posted 3 years ago #


    Ii am using YARPP together with WPML (Multilungual blog plugin) with a child theme to show thumbnails as related posts. The related posts are working without a problem on the english side, arent working on the dutch side.

    I also tried the WPML template which is provided by YARPP itself, the english related posts keeps working. The dutch related pots says; No related posts. However, the languages are almost exact translations. So when a enlgish article got a translation, so must the dutch one have.

    I have had support contact with wpml on the forums: http://wpml.org/forums/topic/wpml-and-yarpp-2

    They can also not get yarpp to work with wpml, however yarpp should support wpml.

    I used YARPP with the default template, wpml template and another template. No matter which template I choose, related posts only works with the english blog. The Dutch blog doesn't show related posts. It says there aren't related posts to show.

    Thank you in advance.

    Have a nice day

    With kind regards,


  2. Jordy Meow
    Posted 3 years ago #

    YARPP shows good related posts on my default language, but on all the others, it shows the SAME related posts on each post (and they are not related at all).

  3. dstel
    Posted 3 years ago #


  4. webcore_ro
    Posted 3 years ago #

    same here
    works fine in the default language..

    also in the admin section the related posts work just fine
    (I mean in the edit-post section)

  5. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 3 years ago #

    This issue must be relatively recent, as I've seen it reported recently a few times now. I know there are many users who would like to use both WPML and YARPP, and I hope we can resolve these issues soon.

    Unfortunately, WPML is now a paid product and I do not own it and therefore I am not able to reproduce these issues or test against it. WPML has a paid support forum and I believe it is their (paid WPML staff's) responsibility to support users and help identify the issue.

    I have had a good relationship with WPML staff in the past. I've been contacted by Mihai Grigori and Amir Helzer (between 2009--2011) and I happily incorporated changes they suggested into YARPP in order to work better with WPML. In 2012 I received an email from Brooks Mucunguzi, offering to help make YARPP WPML-compatible. I replied and said that, following previous contact with Amir, my understanding is that YARPP is already WPML-compatible, and did not receive a reply to that email.

    I hope, following what has happened in the past, the WPML staff are again able to identify the source of this incompatibility and suggest a solution. I am happy to take patches and suggestions. I sincerely hope these issues can be resolved soon.

  6. dstel
    Posted 3 years ago #

    Michael, thank you for your reply.

    Back at wpml they reproduced the error and told me to contact you.

    I will communicate this with wpml.

  7. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 3 years ago #

    Great. Looking forward to a reply. Thanks again for helping communicate between the communities.

  8. Jordy Meow
    Posted 3 years ago #

    No news? I looked into the code but it's really hard to hack into it... I have no idea where to begin.

  9. dstel
    Posted 3 years ago #

    Nope, no positive news. I have a support issue on WPML support.

    They are looking into my website and the plugins. I'll keep this thread updated with more information when i have them.

  10. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 3 years ago #

    Thanks for the updates guys. I pinged the @WPML account on twitter as well, but haven't heard since.

  11. dstel
    Posted 3 years ago #

    Last update is that WPML will contact Michael (YARPP author) for better integration of both plugins.

    This means that my role in this issue for now stops. I really hope both plugin developers can sort this out. I think it would be a high improvement on both sides!

  12. mitcho (Michael Yoshitaka Erlewine)
    Plugin Author

    Posted 3 years ago #

    @dstel thanks for trying to put us in touch! Unfortunately I did reach out to Amir via twitter (owner of WPML, who I've spoken to in the past) and did not receive any substantial reply or follow up.


    Amir replied to the latter and clarified that this is for YARPP, but then I haven't heard since.

    I wish I had better news for you all. :(

  13. juampolo
    Posted 3 years ago #

    Please let us know if something changes and we can use again the YARPP with WPML ;)

  14. Max Krupov
    Posted 3 years ago #

    Hey guys! I was wondering what plugin was best to use for Chinese sites, to download videos? Has anybody had any experince with that? Large entertainment places like Digititles.com are super easy to navigate when it comes to media

    but Mandarin sites from China are a pain in the butt!

  15. Ishko
    Posted 3 years ago #


    I have the same problem. I tried to bypass the cache, as WPML and YARPP seems to work well in all languages when cache has just been flushed.

    Finally I "resolved" the problem by editing the class-core.php file to clear cache before every display (see : http://wordpress.org/support/topic/how-to-bypass-the-cache?replies=3#post-4230231 ).
    I have only a few related posts then it will be good enough, temporarily.

    Then this is my question :
    Could the problem just rely on the cache save process in custom table mode ?

    It seems like WPML is well implemented and the problem occurs only at a time of the cache process. If only Yarpp is concerned, maybe someone could help find a solution even if WPML team doesn't answers ?

  16. MercedesWPML
    Posted 3 years ago #

    Hi Michael,
    This is Mercedes, from WPML. We would like to work on the compatibility. Can you drop me a line and we will be able to help?

  17. hussong
    Posted 3 years ago #

    I am currently working relaunching a bilingual website that I just migrated to WPML and was planning to implement related posts via YARPP as well.

    I can offer some testing next week, let me know if I can help.

    Thank you for the great plugins!

  18. hussong
    Posted 2 years ago #

    Update: I've installed YARPP 4.0.6 along with WPML 2.9.1 and it works OOTB as far as "language separation" is concerned -- i.e. related German posts are shown on German posts and related English posts are shown on English posts.

    However, the related post generation for the secondary language (English in my case) seems to stall somewhere after the first page load and the related posts shown are the same on every other post (it would even show a link to the current post).

    When I change the maximum number of related posts and save the settings, it seems to re-generate related posts on the first page load (they change), but then it keeps showing the new de-facto static set of related posts again all over the place.

    Same with YARPP 4.0.7b1 BTW.

    Hope this helps!

  19. hussong
    Posted 2 years ago #

    Just wanted to share a quick workaround: If you're using a custom php template, you can wrap the part that displays the related posts in a conditional statement that checks if the current language is the primary language.

    Your modified yarpp-template-multilingual.php would look like this:

    YARPP Template: Multilingual
    Description: An example template for use with the WPML and Polylang plugins
    Author: mitcho (Michael Yoshitaka Erlewine)
    if (function_exists("icl_register_string")) {
    	icl_register_string("Yet Another Related Posts Plugin", "related posts header", "Related Posts");
    	icl_register_string("Yet Another Related Posts Plugin", "no related posts message", "No related posts.");
    } ?>
    <?php if(ICL_LANGUAGE_CODE=='en') :?>
    	<h3><?php echo (function_exists("icl_t") ? icl_t("Yet Another Related Posts Plugin", "related posts header", "Related Posts") : "Related Posts") ?></h3>
    	<?php if (have_posts()):?>
    		<?php while (have_posts()) : the_post(); ?>
    		<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
    		<?php endwhile; ?>
    	<?php else: ?>
    	<p><?php echo (function_exists("icl_t") ? icl_t("Yet Another Related Posts Plugin", "no related posts message", "No related posts.") : "No related posts.") ?></p>
    	<?php endif; ?>
    <?php endif; ?>

    Change the language code to your primary language and you'll have at least properly working related posts on your primary language and nothing bad on the secondary languages.

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


No tags yet.