I am trying to create a virtual page for my plugin and I am having a $wp_query reset issue when doing so. I am using the class https://gist.github.com/brianoz/9105004 to create the virtual page.
I can get everything to work ok but the issue is whenever there is another loop on the page whether from a widget plugin in the sidebar it will return the $wp_query set from the virtual page.
The virtual page class has taken over the page and I can’t find a way to make it so any other queries on the page will work.

Read more here: $wp_query issue when trying to create a virtual page


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: