Looking the most recent WordPress query that is run on a given page can be useful for several reasons:
– you see how the information in the database is retrieved,
– you learn how the underlying query system works,
– you’re able to benchmark your custom queries,
– and more.
In a recent article for Envato, I share a 60-second video on how you can quickly take a look at the last query executed on a given page.