Created
April 15, 2017 02:35
-
-
Save MrJSdev/faac2d8af284c647bfcf14a9647e80a9 to your computer and use it in GitHub Desktop.
This is the code guide of displaying page slug that I have posted at http://extracatchy.net
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 | |
| // Lets get the page slug | |
| global $post; | |
| $post_slug=$post->post_name; | |
| // For display the data we need to echo it | |
| echo $post_slug; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment