This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Query debug info


Adds information about the query to the front end, including page type, post count, query vars, the query string and the wordpress sites constants

You can track up to 3 queries with this plugin, usefull to debug custom loops.


  • Displaying the information of the default query for the homepage
  • Displaying the query information for a custom query


  • Upload the file to your server and extract it in the /wp-content/plugins/ directory
  • Activate the plugin through the ‘Plugins’ menu in WordPress


  • Add the function call <?php if (function_exists('debuginfo')) { debuginfo("Main"); }?> in your template to display information about the main query
  • Add additional calls <?php if (function_exists('debuginfo')) { debuginfo("Secondary",2); }?> after creating a new WP_Query object, if you want to track a specific variable you can pass it to the function, example:
  • The information is only displayed if you are logged in as an administrator.

Contributors & Developers

“Query debug info” is open source software. The following people have contributed to this plugin.

Translate “Query debug info” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Initial release of the plugin.