Title: query_posts() multiple cat names?
Last modified: August 19, 2016

---

# query_posts() multiple cat names?

 *  [rrasco](https://wordpress.org/support/users/rrasco/)
 * (@rrasco)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/query_posts-multiple-cat-names/)
 * According to the function reference, you used to be able to query posts based
   on their category slug. You can still do this in WP3, but it won’t allow you 
   to use multiple slugs now? If it’s possible, what is the new method to do this?
 * > Display posts that have these categories, using category slug (not possible
   > with wp3.0):
 * `query_posts( 'category_name=staff,news' );`
 * [http://codex.wordpress.org/Function_Reference/query_posts](http://codex.wordpress.org/Function_Reference/query_posts)

The topic ‘query_posts() multiple cat names?’ is closed to new replies.

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [rrasco](https://wordpress.org/support/users/rrasco/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/query_posts-multiple-cat-names/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
