Title: Exclude multiple authors via query_posts?
Last modified: August 18, 2016

---

# Exclude multiple authors via query_posts?

 *  [drcrypto](https://wordpress.org/support/users/drcrypto/)
 * (@drcrypto)
 * [18 years, 9 months ago](https://wordpress.org/support/topic/exclude-multiple-authors-via-query_posts/)
 * I want to exclude multiple authors from my post query. I am able to exclude multiple
   categories but not authors. The code looks like this
 * <?php query_posts(‘cat=-3,-17&author=-4,-3&showposts=3’); ?>
 * Categories 3 and 17 are excluded, but only Author 4 is excluded. Author 3 is 
   allowed?
 * Am I doing something wrong? I am using WP 2.2.1

The topic ‘Exclude multiple authors via query_posts?’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [drcrypto](https://wordpress.org/support/users/drcrypto/)
 * Last activity: [18 years, 9 months ago](https://wordpress.org/support/topic/exclude-multiple-authors-via-query_posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
