Forked from deepak-rajpal/wordpress-display-query-variables.php
Created
September 9, 2023 10:51
-
-
Save lunitrixx/20662fd6bc256248275164593fdec195 to your computer and use it in GitHub Desktop.
WordPress display all wp_query and query variables (post information etc)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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