In functions.php wp_query is called as a variable ($wp_query) instead of a class ... so you should have sometthing like that : $my_var = new WP_Query ()
or maybe fix it this way : $wp_query = new WP_Query ();
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.