Display menu with current ancestors and child pages
-
I need a menu that works like so…
Page 1 // Hidden/ignored Subpages
Page 2 // Hidden/ignored Subpages
Page 3
– Subpage 1 // Hidden/ignored Subpages
– Subpage 2 // Current Page
– – Deeperpage 1
– – Deeperpage 2
– Subpage 3
Page 4
Page 5 // Hidden/ignored Subpages
Page 6 // Hidden/ignored SubpagesIntially i thought of using the get_post_ancestors($ID) then loop through to build an array of subpages then again another loop to walk through and echo the necessary ul, li etc
However, i have only managed to echo through one of the childs.
Any help would be great.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display menu with current ancestors and child pages’ is closed to new replies.