Skip to content

Instantly share code, notes, and snippets.

@ducban
Created August 10, 2013 00:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ducban/6198405 to your computer and use it in GitHub Desktop.
Save ducban/6198405 to your computer and use it in GitHub Desktop.
Paste the code below on any files, where you'd like to display the WP Query variables.
global $wp_query;
var_dump($wp_query->query_vars);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment