WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
Problems with bilingual site (4 posts)

  1. alternn
    Member
    Posted 1 year ago #

    Hello,

    I use YARPP on a bilingual site managed with WPML. I use a following template for it:

    <?php
    if ($related_query->have_posts()):
    while ($related_query->have_posts()) : $related_query->the_post();
    $postsArray[] = '<a href="'.get_permalink().'" rel="bookmark">'.get_the_title().'</a><!-- ('.get_the_score().')-->'; endwhile; ?>
    <div id="related">
    <?php echo __('Related: ','POP');
    echo implode(', '."\n",$postsArray); // print out a list of the related items, separated by commas ?>
    </div>
    <?php endif;?>

    The problem is in one language YARPP works as it is supposed to returning relevant posts, and for another it returns the same post again and again for every other post.

    Do you have any clue? I'd be happy to supply more information.
    (the site is this, and for now I just completely removed related posts for English because it does not work ok)

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

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    I don't think the custom template is the issue. Have you tried resetting the cache using YARPP Experiments?

    http://wordpress.org/extend/plugins/yarpp-experiments/

    Let me know if that helps.

  3. alternn
    Member
    Posted 1 year ago #

    Hi. Thank you for the reply.

    I've just tried that, but resetting the cache didn't help. Still Polish is fine and in English there is different related post after the reset, but still the same for every post :(

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry to hear that. :(

    Unfortunately WPML is a paid product with paid support, so I suggest you ask them to look into this. Their developers have contacted me and I've made changes to YARPP accordingly in the past, but as far as I know they haven't identified any current incompatibilities, and I don't own WPML myself so I'm not able to try to reproduce your issues.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic