qTranslate и Related Posts в WordPress
Faced a problem collaboration of qTranslate and Related Posts plugins for WordPress. The list of related posts displayed titles in all languages of the site, in particular, and in Russian, and in English, with labels <!–:in->, <!–:ru–> and so on. The solution turned out to be very simple..
Has undergone a change WordPress plugin text Related Posts. In particular, code needs to be replaced:
1 2 3 4 |
function wp_related_posts(){ $output = wp_get_related_posts() ; echo $output; } |
to the code:
1 2 3 4 |
function wp_related_posts(){ $output = wp_get_related_posts() ; echo _e($output); } |
Function _e translates the content transmitted to it, i.e. shows content on one, necessary, language.
Checked everything works )))