A client’s WordPress website needed some love in regards to its SEO and as it is a multilingual site, it has QTranslate in combination with Yoast SEO.
For the most part these 2 plugins work great individually, but when combined there are some serious issues with SEO of foreign languages with regards to meta title and meta description tags for pages and posts.
After hunting around a little in the search engines I was terribly relieved to find the post on the WordPress forum, which provided some awesome insights. However, there still appeared to be a problem with the title tags, and I was not able to determine a solution that I found satisfactory.
Some investigation seemed to come up with a suitable result. So if you are having issues, consider following the instructions below and see how you get on. I would really, really appreciate your feedback as I have only recently implemented this change so thorough testing has yet to be conducted. Please note that the standard QTranslate syntax will need to be used for the meta title and description (e.g. <!–:en–>English<!–:–><!–:es–>Spanish<!–:–>).
From the forum post linked above, add the following into the functions.php script of the theme you are using:
// Enable qTranslate for WordPress SEO
function qtranslate_filter($text){
return __($text);
}
add_filter(‘wpseo_title’, ‘qtranslate_filter’, 10, 1);
add_filter(‘wpseo_metadesc’, ‘qtranslate_filter’, 10, 1);
add_filter(‘wpseo_metakey’, ‘qtranslate_filter’, 10, 1);
and that works fine with exception to the title tag. For this I made the change to the Yoast plugin file /wp-content/plugins/wordpress-seo/frontend/class-frontend.php, which included replacing the line:
return esc_html( strip_tags( stripslashes( apply_filters( ‘wpseo_title’, $title ) ) ) );
with:
return esc_html( strip_tags( stripslashes( apply_filters( ’wpseo_title’, wpseo_get_value( ‘title’ ) ) ) ) );
Save and check. This appears to work fine for me, but please try for yourself and let me know your feedback in the comments section below.
Many thanks and happy translating.
UPDATE
The above solution works with Yoast versions 1.2.8.7 or older.
If your version of Yoast is 1.3 or newer the above solution will not work (your qTranslate code will be stripped out when you save). We are currently working on a fix and will post it here when completed. If you would like to be emailed once we’ve found a fix, just post “Please let me know when you’ve found the fix for Yoast version 1.3+” in the comments box below.
If you can’t wait until then, Yoast version 1.2.8.7 will do the trick in the meantime.

Hey,
Thks for your tips.
I tried but it doesnt worked in my case : http://www.empereur-immobilier.com
The meta title doesn’t not appear (the browser shows the url and not the title).
Any idea ?
Many thks in advance
Hi there,
Thanks for your post. I just had a look at this page and the browser title seems to be changing from French to English as expected: http://www.empereur-immobilier.com/annonces-vendues/ and http://www.empereur-immobilier.com/en/annonces-vendues/
Did you manage to resolve the issue? Or are you seeing a problem with specific pages?
Thanks,
Sara
Nope, I disabled the pluggin. I retry today and it sounds good. I don’t know why.
Hi Theo,
Thanks for the update – sometimes this can be a cached page issue (i.e. not seeing the newly updated page), and often clearing your Joomla cache, and/or force refreshing your browser (CTRL + F5 a few times) can instantly fix the problem.
Glad it all got sorted,
Sara
Hi there Sara
Been trying the above fix but wp keeps stripping away the qTranslate syntax from the Yoast plugin
Any ideas?
Kind regards
Ravi
Hi Ravi,
Thanks for your post – can you let me know what versions of WordPress, qTranslate and Yoast you are using?
Thanks,
Sara
Hi Ravi,
We’ve carried out some testing, and it would seem that the Yoast version is the cause.
The above solution works with Yoast versions 1.2.8.7 or older.
If your version of Yoast is 1.3 or newer the above solution will not work (your qTranslate code will be stripped out when you save). We are currently working on a fix and will post it here when completed.
If you can’t wait until then, Yoast version 1.2.8.7 will do the trick in the meantime.
All versions of Yoast can be found here: http://wordpress.org/extend/plugins/wordpress-seo/developers/
I hope this helps,
Sara
the right answer for me has been wp-i18n http://wordpress.org/extend/plugins/wp-i18n/ with SEO by Yoast.
One different page for each language and a more organized SEO.
Please let me know when you’ve found the fix for Yoast version 1.3+
Please let me know when you’ve found the fix for Yoast version 1.3+
Thanks.