Add qtranslate language select box to menu [closed]

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(); ?>

Applying post title filter: Last Viewed Posts + qTranslate

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

Recent Posts titles not working with Qtranslate

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