Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save deepak-rajpal/5531738 to your computer and use it in GitHub Desktop.
Save deepak-rajpal/5531738 to your computer and use it in GitHub Desktop.
WordPress display all wp_query and query variables (post information etc)
<?php
global $wp_query;
echo "<pre>";
var_dump($wp_query->query_vars);
var_dump($wp_query);
echo "</pre>";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment