Title: query_posts   query_string   category__not_in
Last modified: August 19, 2016

---

# query_posts query_string category__not_in

 *  [garbonzo](https://wordpress.org/support/users/garbonzo/)
 * (@garbonzo)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/query_posts-query_string-category_not_in/)
 * I’m trying to use that new taxonomy for query_posts so my index.php can do some
   fancy stuff.
 * I want to use “category__not_in” in my query_posts, but am unsure of how to fit
   $query_string in the whole statement. The only example I’ve seen is the one in
   the codex, where it mentions at the very bottom:
    query_posts(array(‘category__and’
   =>array(1,3),’showposts’=>2,’orderby’=>title,’order’=>DESC));
 * Indicating an array can be passed to query_posts. But how do I fit $query_string
   in there properly? THANKS!

The topic ‘query_posts query_string category__not_in’ is closed to new replies.

## Tags

 * [query_posts](https://wordpress.org/support/topic-tag/query_posts/)

 * 0 replies
 * 1 participant
 * Last reply from: [garbonzo](https://wordpress.org/support/users/garbonzo/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/query_posts-query_string-category_not_in/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
