fault in the loop
-
I’ve been looking for a way to exclude a catagory from the get_archive, and I finaly found one. I’m now using:
-
<?php $temp_query = $wp_query; query_posts(‘showposts=10&cat=-9’); ?>
- ” rel=”bookmark” title=”Permanent Link to “<?php the_title(); ?>””><?php the_title(); ?>
<?php while (have_posts()) { the_post(); ?><?php } $wp_query = $temp_query; ?>
The only problem I encounter now is that it not only excludes the catagory from my sidebar, but also from the content page… does anyone know why?
- The topic ‘fault in the loop’ is closed to new replies.