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

When there are two identical entries in a .po file, how does the translation mechanism determine which one to use?

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/

tech