WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've similar problem to the issue described here.

On my bilingual website here http://redscouseworld.com/ I'd like to display posts only in Polish language.

And here http://redscouseworld.com/en/ I want to show posts written in English only.

I added following code to my homepage:

<?php $the_query = new WP_Query( 'showposts=10' ); ?>
<?php while ($the_query -> have_posts()) : $the_query -> the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
<li><?php the_excerpt(__('(moreā€¦)')); ?></li>
<?php endwhile;?>

And you can see that on English version both post types are being displayed (Polish and English) - half of them as untranslated ones. How can I display only proper ones on each site?

I tried to hide them using qTranslate function "Hide untranslated content" but the result was empty page.

I'd be grateful for your help! Thanks in advance!

share|improve this question
Did you try this solution wordpress.stackexchange.com/questions/51946/… – Maruti Mohanty Dec 5 '13 at 7:33
Yes I tired to paste this code: <?php $id=47; $post = get_page($id); $content = qtrans_use('en', $post->post_content,false); echo $content; ?> but nothing happened – gombroo Dec 5 '13 at 7:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.