0

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:

<ul>
<?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;?>
</ul>

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!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.