Title: [Plugin: Search Everything] loop in loop &#8211; SE incompatible &#8211; workaround
Last modified: August 19, 2016

---

# [Plugin: Search Everything] loop in loop – SE incompatible – workaround

 *  [Marcel Andrew](https://wordpress.org/support/users/michelwp/)
 * (@michelwp)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-search-everything-loop-in-loop-se-incompatible-workaround/)
 * SE is incompatible with loop in loop theme configuration especially if the main
   loop is a search… the filters of SE are set even in the other query (like $mypost
   = new wp_query(‘p=17’);)… It is because SE test with $wp_query->query_vars[‘s’]
   empty condition… before filtering $request…
 * _The workaround in your theme : _
 * **$tmp_query = $wp_query->query_vars[‘s’]; $wp_query->query_vars[‘s’] = null;**
   
   $myposts = new wp_query (‘page_id=10’); … your code loop… **$wp_query->query_vars[‘
   s’] = $tmp_query;**
 * Hope authors will find a more elegant and generic solution in the SE plugin !
   
   Best regards.

The topic ‘[Plugin: Search Everything] loop in loop – SE incompatible – workaround’
is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Marcel Andrew](https://wordpress.org/support/users/michelwp/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-search-everything-loop-in-loop-se-incompatible-workaround/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
