query_posts('cat=-19'); – translation lost
-
I have one category i do not want to show as i use these posts for some special sliders only. On the english version of the site everything works fine but the german version does not show any posts anymore.
<?php if (have_posts()) : query_posts('cat=-19'); while (have_posts()) : the_post();?> <div class="post" id="post-<?php the_ID(); ?>"> <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <div class="the_date"><?php the_date(); ?></div> <div class="entry"> <?php the_content(); ?> </div> </div> <?php endwhile; endif; wp_reset_query(); ?>
If i remove the query_posts i get all posts in both languages again.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘query_posts('cat=-19'); – translation lost’ is closed to new replies.