Skip to content

Instantly share code, notes, and snippets.

@MrJSdev
Created April 15, 2017 02:35
Show Gist options
  • Select an option

  • Save MrJSdev/faac2d8af284c647bfcf14a9647e80a9 to your computer and use it in GitHub Desktop.

Select an option

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
<?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