15 Comments

  1. Jason
    February 20, 2009 @ 8:45 am

    This was so helpful! I’ve been looking for my Page IDs for a while now and finally gave up and Googled it.

    Thanks!

    Reply

  2. dyoonet
    February 26, 2009 @ 4:29 pm

    Exactly what I was looking for. Thanks for sharing your tip! 🙂

    Reply

  3. Soccergoalx
    May 2, 2009 @ 4:26 am

    Thanks for your information. I was struggling to look for the page ID.

    Reply

  4. Chris
    May 6, 2009 @ 10:26 am

    Excellent! Thank you very much!

    Reply

  5. John
    May 7, 2009 @ 6:08 am

    How do we determine content via the page ID for 2.7?

    if ($page->ID == 31) {}

    no longer works!

    Reply

  6. Stephenie
    August 18, 2010 @ 7:44 am

    I’m using 2.9.2 and this works. I just didn’t know to look in the status bar. Thanks so much!!!

    Reply

  7. yogesh patel
    October 22, 2010 @ 6:12 am

    what is diffrence between $page->ID and $post->ID .

    $page-ID doesn’t work in header.php but fine in classes.php
    where as $post->works in header.php

    Reply

  8. randir
    February 23, 2011 @ 10:34 am

    how to find page id of URLs like “mysite.com/archives” ?

    Reply

  9. Saravanan
    August 28, 2011 @ 8:44 am

    The information was very helpful. Thank you.

    Reply

  10. SecurityNXT
    September 3, 2011 @ 3:43 am

    Valuable information, well written!

    Reply

  11. Mysorean
    September 6, 2011 @ 10:12 am

    Very well written. Thanks for the info

    Reply

  12. luoluo123
    September 9, 2011 @ 3:41 am

    More good stuff!

    Reply

  13. lora
    November 11, 2011 @ 3:44 pm

    how to find page ID if I already set /%postname%/ for my permalinks?
    now it just has edit “home” instead of “?action=edit&post=12?

    Reply

  14. blogidev
    February 29, 2012 @ 10:12 pm

    this code :
    I confuse a page_id to fig last post alway;

    Reply

  15. destriwomen
    April 12, 2012 @ 5:48 am

    ????????????

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

I accept that my given data and my IP address is sent to a server in the USA only for the purpose of spam prevention through the Akismet program.More information on Akismet and GDPR.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

privacy policy