Wordpress - Get current page ID (and other default variables)


/ Published in: PHP
Save to your folder(s)

Variables not dependant on the loop, can be used as GET params


Copy this code and paste it in your HTML
  1. $page_id // Variable for the page ID
  2. // will be adding more here...

URL: http://www.xaviesteve.com/blog

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.