vtxyzzy on “Query Reset after accessing my own data table”

January 6, 2010 by vtxyzzy  
Filed under 1

Comments Off

Before your local query, save $wp_query, then restore it after, like this:

$temp_query = clone $wp_query;
// Do your own stuff here;

$wp_query = clone $temp_query;

See if that helps.