Yoast Seo
-
If someone else like me starts freaking out about Yoast SEO not working with mQtranslate, because the filters no longer work and you get loads of google duplicate content errors, check your functions.php change QT_SUPPORTED_WP_VERSION to QT_MAX_SUPPORTED_WP_MAJOR_VERSION
// Enable qTranslate for WordPress SEO
if(defined(“QT_MAX_SUPPORTED_WP_MAJOR_VERSION”)) {
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);
add_filter(‘wpseo_opengraph_title’, ‘qtranslate_filter’, 10, 1);
add_filter(‘pop_most_viewed_content’, ‘qtranslate_filter’, 10, 1);
}Also some other stuff for a bit more functionality – not complete though, feel free to add/change.
ww.wp.xz.cn/support/topic/wordpress-seo-1521-with-qtranslate
The topic ‘Yoast Seo’ is closed to new replies.