Posted By

javifr on 10/29/10


Tagged

wordpress


Versions (?)

Retrieve page name from id


 / Published in: PHP
 

  1. $pageID = $wp_query->post->ID;
  2. $pageName = $wp_query->post->post_title;
  3.  
  4. //o SLUG
  5. $pageName = $wp_query->post->slug;

Report this snippet  

You need to login to post a comment.