I’m using qtranslate but for some reason, in my loop it’s show the posts in both languages I have them in English and Spanish, what could be wrong? So it’s displaying each post twice for each language.
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?>
...
<h2><?php $queried_post = get_post($post->ID); $title = $queried_post->post_title; echo apply_filters('the_title',$title ); ?> </h2>
<p><?php $queried_post = get_post($post->ID); echo apply_filters('the_content',$queried_post->post_content); ?> </p>
...
<?php endwhile; ?>
<?php else :// Show the default message to everyone else.?>
<?php endif; // end have_posts() check ?>
I had the same problem and I solved it by using new WP_query instead of $queried_post:
Hope this helps.
Greetz,
Thomas