Viewing 1 replies (of 1 total)
  • $post->post_parent; is the ID # of the parent. If = 0 there is no parent.

    get_the_title($post->post_parent); will get the parent page’s title

    get_page_link($post->post_parent) should get the parent’s permalink (I didn’t test this one)

Viewing 1 replies (of 1 total)
  • The topic ‘PHP To Discover "Parent Page"’ is closed to new replies.