Keep page hierarchy in wp_list_pages, even if on a child or grandchild
It is quite obvious that the $post_parent property will be 0 on any parent page, so the following idea you would want to run only when $post_parent is not 0 I cannot code anything concrete now, but in short, the basic idea would be: First check the current post parent. If the post parent is … Read more