Hi,
I have a home.php template that creates a new WP_Query object then shows 2 posts from the blog. After the <?php endwhile; ?>
I have two query_posts() functions, one filtering for posts in cat=10 the other for posts in cat=-10 (ie. all other categories) that both include the same mini-index template.
The second one isn’t working, it lists nothing. The code is:
<h3>Events</h3>
<?php rewind_posts(); ?>
<?php query_posts('cat=10'); //gets all posts from category 10
load_template( TEMPLATEPATH . '/mini-index.php'); //loads home page category links
?>
<h3>Diary</h3>
<?php query_posts('cat=-10'); //gets all posts from categories other than 10
load_template( TEMPLATEPATH . '/mini-index.php'); //loads home page category links
?>
TIA