wp_list_pages() but only show children on the branch you are on
I have come up with my own solution but I’m not convinced it’s the best. $parents = array( $post->ID ); if( 0 != $post->post_parent ) { $parents = array_merge( $parents, get_post_ancestors( $post->ID ) ); } $child_of = end( $parents ); $args = array ( ‘child_of’ => $child_of, ‘echo’ => 0, ‘title_li’ => ”, ‘walker’ => … Read more