WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] qtranslate and Microkid's Related Posts (2 posts)

  1. djodjo
    Member
    Posted 4 years ago #

    If you want to use Microkid's Related Posts with qtranslate like:

    $related_posts = MRP_get_related_posts($post->ID);

    the problem: MRP_get_related_posts return the title in every languages... Pity...

    To resolve this problem, open microkids-related-posts.php and search:

    $related_posts[$result->ID] = $result->post_title; in MRP_get_related_posts function.

    And replace by:

    $related_posts[$result->ID] = wp_specialchars(qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($result->post_title));

    That's it!

  2. yjb
    Member
    Posted 4 years ago #

    A concise fix that works perfectly!

    Thanks a lot djodjo

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.