vtxyzzy on “Query Reset after accessing my own data table”
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.
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.