qTranslate‑X is not translating all shortcodes
qTranslate‑X is not translating all shortcodes
qTranslate‑X is not translating all shortcodes
how to get the qtranslate-x meta_value in wp_postmeta using WP_Query?
I solved the problem by checking the option Editor on the Magic fields post type settings and hiding the visual editor with an extra option on Adminimize settings targeting the Visual Editor with it’s ID on the specific post type. So now qTranslate can see the Title and apply the second language while the visual … Read more
In my header.php I added the following <div style=”float: right; margin: 7px 15px 0 0;”> <?=qtrans_generateLanguageSelectCode(‘dropdown’);?> </div> <?=..?> is the same as <?php echo … ?> or <?php function(); ?>, but I prefer the shortcode just next to: <?php ct_primary_nav_menu(); ?>
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 get content by language using wp_query
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
qTranslate: Two languages on the same exact page
Custom theme .mo translation file not working
echo term_description( $term->term_id, $taxonomy );