Hello, I’ve read that it is possible to retrieve the link to the parent page with
echo '<a href="'.get_permalink($post->post_parent).'">'.get_the_title($post->post_parent).'</a>';
But is it possible to retrive the parent page ID or slug ?
- The topic ‘Get parent page ID (or slug)’ is closed to new replies.