WordPress.org

Ready to get started?Download WordPress

Profiles

dthom

Profile picture of dthom
  • Member Since: June 13th, 2009
  • 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

    5 years ago