Hi, I’ve been using WP for many years, but I still have problems with a very simple feature :
I want all posts that are in category 7537 but that aren’t in category 4.
According to the codex and most of the web, I got this :
$args = array(
“category__in” => 7537,
‘category__not_in’ => 4,
$posts_array = query_posts( $args );
Returning 0 results, but there are some posts realizing these conditions (a lot) in the database. What’s the good way to get it ?
Thanks a lot
- The topic ‘Query_posts : include AND exclude categories’ is closed to new replies.