• 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.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category filtering’ is closed to new replies.