WordPress.org

Support

Support » Plugins and Hacks » [Resolved] qtranslate and Microkid’s Related Posts

[Resolved] qtranslate and Microkid’s Related Posts

  • 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!

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] qtranslate and Microkid’s Related Posts’ is closed to new replies.