Posted By

mr_wza on 07/16/13


Tagged

wordpress slug


Versions (?)

WordPress slug


 / Published in: PHP
 

  1. function the_slug() {
  2. $post_data = get_post($post->ID, ARRAY_A);
  3. $slug = $post_data['post_name'];
  4. return $slug;
  5. }

Report this snippet  

You need to login to post a comment.