How to query posts that are in category A and category B?
-
This might be a dumb question, but I haven’t spent lots of time trying to find the answer in the documentation and the forums, and can’t get anything.
How do you query blog posts that are in BOTH category A and category B?
If I use
https://www.mysite.com/index.php?category_name=A&category_name=B
I get posts that are EITHER in category A OR in category B. But I only want to see posts that are in BOTH.
Is this possible within a URI? Or otherwise?
TIA
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘How to query posts that are in category A and category B?’ is closed to new replies.