Skip to main content
Fixed spelling, formatting and tags
Source Link
fuxia
  • 107.1k
  • 38
  • 255
  • 459

imI am using a wordpressWordPress 3.8 installinstallation with qtranslate, and everything is working except for the recent posts titles. Qtranslate displays the titles with all languages after eachothereach other. Like  : English title German title French titleEnglish title German title French title

The code imI am using to display a list with recent post titles is  :

<?php
$recent_posts = wp_get_recent_posts();
foreach( $recent_posts as $recent ){
    echo '<li class="lastposts"><a href="' . get_permalink($recent["ID"]) . '" title="'.esc_attr($recent["post_title"]).'" >' .   $recent["post_title"].'</a> </li> ';
}
?>

?>

I have googled for this problem and it seems like Qtranslate does not work with post_titlepost_title. How can iI make it work? Thanks in advance for your help.

im using a wordpress 3.8 install with qtranslate, and everything is working except for the recent posts titles. Qtranslate displays the titles with all languages after eachother. Like  : English title German title French title

The code im using to display a list with recent post titles is  :

<?php
$recent_posts = wp_get_recent_posts();
foreach( $recent_posts as $recent ){
    echo '<li class="lastposts"><a href="' . get_permalink($recent["ID"]) . '" title="'.esc_attr($recent["post_title"]).'" >' .   $recent["post_title"].'</a> </li> ';
}

?>

I googled for this problem and it seems like Qtranslate does not work with post_title. How can i make it work? Thanks in advance for your help.

I am using a WordPress 3.8 installation with qtranslate, and everything is working except for the recent posts titles. Qtranslate displays the titles with all languages after each other. Like: English title German title French title

The code I am using to display a list with recent post titles is:

<?php
$recent_posts = wp_get_recent_posts();
foreach( $recent_posts as $recent ){
    echo '<li class="lastposts"><a href="' . get_permalink($recent["ID"]) . '" title="'.esc_attr($recent["post_title"]).'" >' .   $recent["post_title"].'</a> </li> ';
}
?>

I have googled for this problem and it seems like Qtranslate does not work with post_title. How can I make it work?

Source Link
Tanks
  • 13
  • 1

Recent Posts titles not working with Qtranslate

im using a wordpress 3.8 install with qtranslate, and everything is working except for the recent posts titles. Qtranslate displays the titles with all languages after eachother. Like : English title German title French title

The code im using to display a list with recent post titles is :

<?php
$recent_posts = wp_get_recent_posts();
foreach( $recent_posts as $recent ){
    echo '<li class="lastposts"><a href="' . get_permalink($recent["ID"]) . '" title="'.esc_attr($recent["post_title"]).'" >' .   $recent["post_title"].'</a> </li> ';
}

?>

I googled for this problem and it seems like Qtranslate does not work with post_title. How can i make it work? Thanks in advance for your help.