How to make a list that displays the top level subpages, and any subpages or siblings off of the current page

Lets say we are displaying a few family trees. We are currently on the family tree top-page,and we need our list to look like this:

Family Trees

  • The Smiths
  • The Joneses
  • The Does

When the user clicks the Smiths, we want the list to look like this:

The Smiths

  • The Smiths
    • Dave
    • Steve
    • Dolly
  • The Joneses
  • The Does

And when a user clicks on Steve, we want the list to also look like this:

Dave Smith

  • The Smiths
    • Dave
    • Steve
    • Dolly
  • The Joneses
  • The Does

So, we need to display a list of all subpages and siblings of the current page, as well as all siblings of every step in the hierarchy.

Any ideas?

4 Answers
4

What you write reminded me to some plugin / widget I know of. It’s related to Silo Web Design and the plugin is the Silo Widgets Plugin For WordPress. In SemPro you can make use of inline widgets to display something like that within posts.

Leave a Comment