[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.