I’m building a site using WordPress as a CMS and which uses pages almost exclusively to organise content.
I’m trying to find a way of creating a navigation menu which lists all the child and grandchild pages of top level pages, so the menu stays the same as you browse child and grandchild pages. There’s a couple of solutions around which work perfectly when using wp_list_pages and get_post_ancestors but I would like to include text excerpts from the pages too, and for that I think I need to use a wp_query.
I wonder if someone can help?
The wp_list_pages version of the code is as follows: