Title: Problems with WP_Query
Last modified: August 20, 2016

---

# Problems with WP_Query

 *  [ericopter](https://wordpress.org/support/users/ericopter/)
 * (@ericopter)
 * [15 years ago](https://wordpress.org/support/topic/problems-with-wp_query/)
 * I am having a peculiar problem that I cant figure out and cant find through googling.
   I use some custom queries to add a “My Calendar” plugin, grab the latest post
   in a specific category and also display a contact form.
 * All is fine and dandy except for on the search results page (search.php). I call
   the function the same, but no output unless one of the posts I’m querying in 
   my custom post matches the query.
 * Here is the code:
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com/)]_
 * I have tried wp_reset_query(), wp_reset_postdata(), global $wp_query; unset($
   wp_query->query_vars[‘s’], etc etc.
 * Any help would be appreciated. It seems as though the “s” key/value is being 
   passed to all my new query instances, but I dont know how that could be.

The topic ‘Problems with WP_Query’ is closed to new replies.

## Tags

 * [wp_query](https://wordpress.org/support/topic-tag/wp_query/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [ericopter](https://wordpress.org/support/users/ericopter/)
 * Last activity: [15 years ago](https://wordpress.org/support/topic/problems-with-wp_query/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
