Menu to display child and grandchild pages, but not always
-
I’m struggling to create a vertical submenu. I found a lot of solutions here, but none seems to do exactly what I want.
I’ve got a page structure like this:
Page 1
– Page 1.1
– Page 1.2
—> Page 1.2.1
—> Page 1.2.2
– Page 1.3
—> Page 1.3.1
—> Page 1.3.2
– Page 1.4
Page 2
Page 3
etc…The Pages 1 to 4 (the top level) are in the main navigation.
But now I want to have a submenu on Page 1 that lists
– Page 1.1
– Page 1.2
– Page 1.3
– Page 1.4And if go to page 1.2, it should display
– Page 1.1
– Page 1.2
—> Page 1.2.1
—> Page 1.2.2
– Page 1.3
– Page 1.4I want to to display only the actual 2nd level, and also the actual page itself
What makes things a little more difficult: I need to find a solution using get_pages(), as I use a Bootstrap 3 Theme which doesn’t support multi-level menus. And when using wp_list_pages(), I can’t edit the CSS enough for my taste.
I know for get_pages() there is parent, include, exclude, exclude_tree and child_of to play with. But no combination seems to get me where I want to go.
Any help would be appreciated.
- The topic ‘Menu to display child and grandchild pages, but not always’ is closed to new replies.