Created
August 1, 2018 09:08
-
-
Save Inzman/e9806e9376bf59ebdb49c8d2f9af28a2 to your computer and use it in GitHub Desktop.
How to get the tag's slug on the tag page
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 | |
| $tag = get_queried_object(); | |
| echo $tag->slug | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment