I am wanting to see the actual SQL that worpress is running to build certain pages, is there a debug method or some other way to outpout this or view it?
Leave a Reply
You must be logged in to post a comment.
I am wanting to see the actual SQL that worpress is running to build certain pages, is there a debug method or some other way to outpout this or view it?
You must be logged in to post a comment.
You can use any one of these filters from /wp-includes/query.php
You can print certain parts of the query to the screen to see what’s going on under the hood.
For instance, you can add this to your functions file: