I need to list a sidebar submenu for certain pages. It is a complex if, elseif, else statement that uses
wp_list_pages() function and other functionality.
For top level pages: Home, About, Contact, I don't want a submenu to appear, it would just be a sidebar with other functionality, this would be if
is_page('about'); then it would show a different type of menu.
The problem, I am running into is with the submenu for subpages
About, Programs, Media, etc are all "sectional" pages, meaning they are the main top-level pages where the rest of the content is stored. It has it's own menu, whereby all of the pages have a top "overview" page which is domain.com/about/ then, when you go deeper, the should change with the indented list, shows the child pages, if they exist, so domain.com/about/features/ should show
- Features *current-page*
- - Sub Page One (Child of Features page)
- - Sub Page Two
- - Sub Page Three
The next third-level should now get rid of the grandparent pages and now only show a link to the parent page so
- Up One Level
- Sub Page One *current-page*
- Sub Page Two
- Sub Page Three
So on and so forth for any future /sub-sub-sub-sub-pages/
Do you think this is doable?