Title: wp_query-&gt;query_vars
Last modified: August 19, 2016

---

# wp_query->query_vars

 *  [allenskd](https://wordpress.org/support/users/allenskd/)
 * (@allenskd)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_query-gtquery_vars/)
 * I followed the instructions in adding new query vars to a plug-in I’m making 
   but the following problem is making it impossible for me to advance
 * after adding ?authors=&pages= queries I can only run them in a template. I don’t
   know why but I can’t capture them in the plug-in. Example
 * in the template I just use isset( $wp_query->query_vars[‘authors’] ) but when
   I do that inside the plug-in code its not even set, instead it creates a new 
   instance of the object. (which is completely resetted)
 * So to sum it up I can’t capture with wp_query inside the plugin, any suggestions
   on where to approach?

Viewing 1 replies (of 1 total)

 *  Thread Starter [allenskd](https://wordpress.org/support/users/allenskd/)
 * (@allenskd)
 * [17 years, 2 months ago](https://wordpress.org/support/topic/wp_query-gtquery_vars/#post-1042052)
 * Sorry, anyone know?

Viewing 1 replies (of 1 total)

The topic ‘wp_query->query_vars’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [allenskd](https://wordpress.org/support/users/allenskd/)
 * Last activity: [17 years, 2 months ago](https://wordpress.org/support/topic/wp_query-gtquery_vars/#post-1042052)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
