wp_list_pages Hierarchical Help
After you global $post, you can use the core WordPress function get_post_ancestors() to retrieve the parent pages. Example $ancestors = get_post_ancestors($post); if($ancestors){ foreach(array_reverse($ancestors) as $post_id){ $ancestor_page = get_post($post_id); } } Then, to retrieve all child pages of the current page, you could make it easy by using a custom function. Place your custom function in … Read more