By the time index.php runs, it seems as though there is already a query populated.
How can I find out what that query’s query string is?
eg. new WP_Query([query string is here])
By the time index.php runs, it seems as though there is already a query populated.
How can I find out what that query’s query string is?
eg. new WP_Query([query string is here])
Take a look at global $query_string;
.
Or var_dump( $GLOBALS['wp_query'] );
.