Selecting cross-referenced posts.
Posted: Mon Apr 11, 2005 7:37 pm
If I have several categories, say they are named AAA, BBB, CCC, ..., ZZZ, and I assign my posts to multiple categories like this:
Post 1 is in category AAA, BBB, and CCC.
Post 2 is in category AAA and CCC.
Post 3 is in category AAA, BBB, CCC and DDD.
Is it possible to set up a query that will return all posts that only fall into ALL of the selected categories (A logical AND)? For example, searching in category AAA only will return all three posts. Searching in AAA AND BBB will return posts 1 and 3. AAA and DDD will return only post 3.
Thanks,
Scott
Post 1 is in category AAA, BBB, and CCC.
Post 2 is in category AAA and CCC.
Post 3 is in category AAA, BBB, CCC and DDD.
Is it possible to set up a query that will return all posts that only fall into ALL of the selected categories (A logical AND)? For example, searching in category AAA only will return all three posts. Searching in AAA AND BBB will return posts 1 and 3. AAA and DDD will return only post 3.
Thanks,
Scott