Last active
December 21, 2015 00:08
-
-
Save micalexander/6217573 to your computer and use it in GitHub Desktop.
wordpress:snippet:retrieve the currently-queried object.
This file contains hidden or 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 | |
| $queried_object = get_queried_object(); | |
| echo "<pre>" ; var_dump($queried_object) ; echo "</pre>"; | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment