what is the way to see the currently executing query in wordpress?

I am working on wordpress which is new to me
Now I have been provided with site completely designed in wp
But the problem is I am unable to search the query for each functionality/page
I found

$wpdb->get_results

used for getting result from database
also this is not working

$wpdb->queries

Is there any way to print each query currently executing?.

Please Help.

9

Debug bar is one of the recommended (by WordPress) plugins to install for theme and plugin development. I also use debug-bar-extender: http://wordpress.org/extend/plugins/debug-bar-extender/

Leave a Comment