Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.
<?php //my patched archive.php to display posts of a category

get_header(); ?>

    <div id="content">

        global $wp_query;
        query_posts(array_merge($wp_query->query, array('post_type' => 'post', 'lang' => 'de')));
        <?php if (have_posts()) : ?>
            ////... handle the posts... but we never reach this part
        <?php else : ?>

                  echo 'sooorrry nothing found :(';

        <?php endif; ?>

    </div><!-- end #content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>

I was reading here and here

I patched my archive.php

I never get different language posts. I set all the posts to default to german (de). It works nice for the german language, since all posts are german, but nothing shows, even using this patch. Am I missing something?

share|improve this question

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.