Multiple Category Requirement in Loop
I’d like to make a requirement for multiple categories for the select posts to be displayed. Here’s the part of my loop I need to adjust.
<?php query_posts(array(‘category_name’ => uncategorized, ‘showposts’ => 2)); if (have_posts()) : while (have_posts()) : the_post(); ?>
I need posts with both the uncategorized and nightlife categories checked.
How can I best do this?
- The topic ‘Multiple Category Requirement in Loop’ is closed to new replies.