How to view the sql query generated by wp_query
$wp_query is a global variable that contains the current query run by the loop. WP_Query allows you to quickly and easily build a query for any type of object in the database. If you are at your wits end with everything looking right when you pass it to WP_Query you may want to print out […]