WordPress WP_Query without query GET parameters

The transition from URL to SQL in WP is quite long and elaborate.

In a very nutshell:

  • URL gets rewritten into a GET request
  • GET request gets converted into query variables
  • query variables are used to instance main query
  • main query generates SQL

There are a lot of nuances to this process, hooks that fire during it, and logic within. This essentially is WordPress, the very core of its core.

Also note that WP_Query might easily generate more than one SQL query, both for logical and performance reasons.

If I follow your question right you have some extension customizing query with its own GET argument. Simply put there is no way to just “tell” WordPress to give you a “clean” query in this case. You would need to study what exact customization is being done and how it should be handled for your purposes, without breaking function it performs.