I want to do a query to get posts with a slug and
category__not_in. Here's what I do:
$query = array( "name" => "test", "category__not_in" => array( 15 ) ); query_posts( $query );
When printing the result on the screen, I get the given post - but it contains a category which I excluded. I want when I submit
category__not_in it doesn't return any results, but it returns the post.
Post with slug
test contains category 15, but I specifically say if the
slug is test and there is no category 15, then show it to me. How can I tell WordPress to execute this condition?