Dynamic list of child pages starting from a specified parent (root)
-
Is it possible to dynamically display a hierarchical list of pages starting from a specified parent (root)?
For example, on the index.php page of my WP site, I have links to multiple “developer guides”. If a visitor clicks on one of these links, I’d like to have the Page Tree plugin only display the selected guide’s parent (root) and its associated children.
I can see the “Page tree root” option in the Page Tree Widget settings in WP, but it’s not dynamic. It only displays a static parent and keeps resetting the page “root” as the user drills down through the hierarchy. I want to have a dynamic parent that lists all children, and stays that way even if the user navigates between individual child links.
So…from my index.php page:
Developer Guide link #1 > display Developer Guide #1 as root + all child pages
Developer Guide link #2 > display Developer Guide #2 as root + all child pages
Developer Guide link #3 > display Developer Guide #3 as root + all child pagesThanks,
Brian
- The topic ‘Dynamic list of child pages starting from a specified parent (root)’ is closed to new replies.