Display all posts for 2 Categories
-
So the below is the excerpt of the code I’m using to display posts from 2 different categories, 76 and 92. it works fine except it only displays 10 posts… how do I modify this to display all posts that are in these 2 categories.
<?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts(array('category__and' => array(76,92))); ?> <?php if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Display all posts for 2 Categories’ is closed to new replies.