Title: Multiple arguments for  $query-&gt;set()?
Last modified: August 20, 2016

---

# Multiple arguments for $query->set()?

 *  Resolved [jmwhite19](https://wordpress.org/support/users/jmwhite19/)
 * (@jmwhite19)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/multiple-arguments-for-query-set/)
 * Is it possible to include multiple arguments for $query->set()? At the moment
   I just have a single argument of:
 * `$query->set('posts_per_page', 1);`
 * However I need to have more than one argument, does the query accept them?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [s_ha_dum](https://wordpress.org/support/users/apljdi/)
 * (@apljdi)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/multiple-arguments-for-query-set/#post-2826761)
 * `$query->set` changes one query variable only.
 * [http://core.trac.wordpress.org/browser/tags/3.4/wp-includes/query.php#L1901](http://core.trac.wordpress.org/browser/tags/3.4/wp-includes/query.php#L1901)
 * Can I ask what you are trying to do? There are ways to make more global changes
   to the query either by using filters like `posts_fields`, `posts_where`, `posts_limits`,
   etc. or by creating a new query altogether.
 *  Thread Starter [jmwhite19](https://wordpress.org/support/users/jmwhite19/)
 * (@jmwhite19)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/multiple-arguments-for-query-set/#post-2826769)
 * Its actually related to this post:
 * [http://wordpress.org/support/topic/wordpress-34-broke-my-paginaton-setup](http://wordpress.org/support/topic/wordpress-34-broke-my-paginaton-setup)
 * However its now been solved with a very nice function kindly crafted by keesiemeijer

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Multiple arguments for $query->set()?’ is closed to new replies.

## Tags

 * [arguments](https://wordpress.org/support/topic-tag/arguments/)
 * [query](https://wordpress.org/support/topic-tag/query/)
 * [set](https://wordpress.org/support/topic-tag/set/)

 * 2 replies
 * 2 participants
 * Last reply from: [jmwhite19](https://wordpress.org/support/users/jmwhite19/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/multiple-arguments-for-query-set/#post-2826769)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
