WordPress.org

Profiles

Profile picture of
  • Member Since: June 13th, 2009
  • Find me on:

  • Posted a reply to "How to get Page Id using PHP", on the site WordPress Support Forums:
    Using built in stuff: $page=get_page_by_title($page_name); This provides the entire page record. $page->ID is the id

    6 years ago