how to get the qtranslate-x meta_value in wp_postmeta using WP_Query?
how to get the qtranslate-x meta_value in wp_postmeta using WP_Query?
how to get the qtranslate-x meta_value in wp_postmeta using WP_Query?
Solution – take out: foreach($zg_get_title as $zg_title_out) { echo “<a href=\””. get_permalink($value+0) . “\” title=\””. $zg_title_out->post_title . “\”>”. $zg_title_out->post_title . “</a>, \n”; // Output link and title insert: foreach($zg_get_title as $post) { echo “<a href=\””. get_permalink($value+0) . “\” title=\””. $post->post_title . “\”>”. apply_filters(‘the_title’,$post->post_title) . “</a>; \n”; // Output link and title $zg_title_out was replaced with … Read more
Qtranslate works probably with a filter on the_title. So you have to use functions that make use of that filter, not the raw post title. Example, not tested: foreach( $recent_posts as $recent ) { printf( ‘<li class=”lastposts”><a href=”https://wordpress.stackexchange.com/questions/129891/%1$s” title=”%2$s” >%3$s</a></li>’, get_permalink( $recent[“ID”] ), the_title_attribute( array ( ‘post’ => $recent[“ID”], ‘echo’ => FALSE ) ), get_the_title( … Read more
First of all check where wordpress are loading your menu or where is it the file header.php with your theme active and modify with your code because sometimes the menu are loaded at header.
WordPress’ translation mechanism looks not only for the string of the translation functions like __( ‘string’, ‘key’ ). It looks also for the key, in your case the ‘buddyboss-theme’ and search only in a translation file with this key buddyboss-theme-en_US.po. Reference https://make.wordpress.org/polyglots/handbook/plugin-theme-authors-guide/
I figured it out. For the reference problem was links in custom post types. As it appears Qtranslate in its current iteration doesn’t support custom post types. And the_permalink or get_permalink will not change to current lang as you switch them. Solution was very simple. Just include this in functions.php file of your theme. add_filter(‘post_type_link’, … Read more
I’ve found a solution and described it here: http://shtrak.eu/vloo/tech/language-is-already-enabled-or-invalid-when-enablin-new-language-to-qtranslate/ Watch out for older database converters that might wipe out your content!
If you go by that route, you might easily break any other plugin that does stuff with the post content, like custom galleries, excerpt plugins, and such. I think there is a less destructive way to achieve what you (we) want. When a post is about to be displayed, the function qtrans_useCurrentLanguageIfNotFoundShowAvailable is called by … Read more
Multilingual XML sitemaps when using qTranslate-X
I built a solution that dont depends on that permalink structure, you can find follow the changes at this qtranslate slug 0.5 fix