I was wondering how to solve this issue.
This is my Query:
$query = new WP_Query( array( 'posts_per_page' => 6, 'orderby' => 'date', 'order' => 'DESC', 'category__not_in' => array( 7, 22 ) ) );
This is a simple query, What it does is queries all the recent posts and excludes the posts having category IDs 7 and 22.
I have some posts which have two categories linked to it, like, "7 and 10" and "22 and 13". above query excludes these posts too (as it should be), but I also want the query to INCLUDE posts that have two or more categories - one of which might be 7 or 22. I was wondering is it possible?
I hope I've explained it. I appreciate any help on this.