[Plugin: Seo by Yoast qTranslate] Doesn't works
-
Hi there,
I’m trying to use qTranslate with Seo by Yoast, because I need to have 2 languages in my site.
I did the official solution: https://yoast.com/wordpress/plugins/seo/faq/#why-doesnt-the-wordpress-seo-plugin-with-qtranslate
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 );
But it doesn’t works to me, I can’t see something diferent.
Next I tried is to modify the class-frontend.php:
else if ( $this->is_home_posts_page() ) { $title = $this->get_title_from_options( 'title-home' ); // Changes start here // Changed to tackle multilingual issue on posts page } else if ( $this->is_posts_page() ) { global $q_config; $title = qtrans_use($q_config['language'], $this->get_content_title( get_post( get_option( 'page_for_posts' ) ) ), true); // Added to tackle multilingual issue on pages } else if ( is_page() ) { global $q_config; $title = qtrans_use($q_config['language'], $this->get_content_title(), true); // end changes } else if ( is_singular() ) { $title = $this->get_content_title();
It works, but not completely, because I can change the SEO Title (with [:en]) but no the meta description.
I tried to put <!–:en–>Meta description<!–:–> and it doesn’t works, when I update the page, the code disappears and I see, for example:
ContactContacto
What I’m doing bad? I followed this thread: http://wordpress.org/support/topic/plugin-wordpress-seo-by-yoast-compatibility-with-qtranslate?replies=39
Thank you!
- The topic ‘[Plugin: Seo by Yoast qTranslate] Doesn't works’ is closed to new replies.