I want to exclude certain category (e.g for category_ID=47) from loop by using code (with minus sign):
query_posts($query_string . "&cat=-47");
But both of them are not work to exclude.
Just for checking, if I try using code (without minus sign:
query_posts($query_string . "&cat=47");
Both of them are work to show posts only from category_ID=47.
How to solve this problem?
My server configuration:
- The topic ‘query_posts not work with minus sign’ is closed to new replies.