Title: Excluding multiple authors from query_posts
Last modified: August 20, 2016

---

# Excluding multiple authors from query_posts

 *  [ProtusMose](https://wordpress.org/support/users/protusmose/)
 * (@protusmose)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/excluding-multiple-authors-from-query_posts/)
 * I’m trying to filter out authors on specific pages. I have no problem stripping
   one author from the feed using:
 * `query_posts('posts_per_page=5&orderby=date&order=DESC&author=-18');`
 * I cannot figure out how to add another author to the list.
 * `query_posts(‘posts_per_page=3&orderby=date&order=DESC&author=-18,-20′);’
 * and
 * ‘query_posts(‘posts_per_page=3&orderby=date&order=DESC&author=-18,20′);’
 * and
 * and ‘query_posts(‘posts_per_page=3&orderby=date&order=DESC&author=-18,author=-
   20′);’
 * all remove one but not the other. How can I get it to exclude multiple IDs?
 * Thanks

The topic ‘Excluding multiple authors from query_posts’ is closed to new replies.

## Tags

 * [exclude](https://wordpress.org/support/topic-tag/exclude/)
 * [query](https://wordpress.org/support/topic-tag/query/)
 * [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: [ProtusMose](https://wordpress.org/support/users/protusmose/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/excluding-multiple-authors-from-query_posts/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
