Title: Problem with my query_posts request
Last modified: August 19, 2016

---

# Problem with my query_posts request

 *  [skapiso](https://wordpress.org/support/users/skapiso/)
 * (@skapiso)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/problem-with-my-query_posts-request/)
 * Hi everyone,
 * I want to display my news except the news of the category 21. So i read in the
   codex that i’ve to do something like this:
 *  query_posts($query_string . “&cat=-21&order=ASC”);
 * It works for the category but the order doesn’t work. The request bug only if
   I exclude a category. If i Do :
 *  query_posts($query_string . “&cat=21&order=ASC”);
 * the order works.
 * Someone have an explication or a solution?
 * thanks a lot.

Viewing 1 replies (of 1 total)

 *  [uxte](https://wordpress.org/support/users/uxte/)
 * (@uxte)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/problem-with-my-query_posts-request/#post-832256)
 * Hi, I have the same problem.
 * Did anyone come up with a solution for this? I know that the problem is by excluding
   the category with the “-” signal.

Viewing 1 replies (of 1 total)

The topic ‘Problem with my query_posts request’ is closed to new replies.

## Tags

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

 * In: [Requests and Feedback](https://wordpress.org/support/forum/requests-and-feedback/)
 * 1 reply
 * 2 participants
 * Last reply from: [uxte](https://wordpress.org/support/users/uxte/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/problem-with-my-query_posts-request/#post-832256)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
