wp_query rather than wp_the_query in getQueryType