How do I set it up such that I only display a specified number of posts that must exist in 2 specified categories. Like an AND rather than an OR.
This one will display posts as long as it’s in either category 4 or 7
<?php query_posts(‘cat=4,7&showposts=1’); ?>
But I only want to display posts if it’s in both of these categories.
- The topic ‘Category filtering’ is closed to new replies.