Sign up ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I've similar problem to the issue described here.

On my bilingual website here I'd like to display posts only in Polish language.

And here 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… – 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.