How to show only parents subpages of current page item in vertical menu?
I just can't find a way to make it possible to show only current parent items down to current page item in a vertical menu the "wordpress way".
What I want to achieve is the following dynamic structure, if I visit Page 3.2.2.2:
Page 1 Page 2 Page 3 Page 4
- Page 3.1
- Page 3.2
- Page 3.2.1
- Page 3.2.2
- Page 3.2.2.1
- Page 3.2.2.2
- Page 3.2.2.2.1
- Page 3.2.2.2.2
- Page 3.2.2.3
- Page 3.2.3
- Page 3.3
- Page 3.4
- Page 3.5
So, only submenus for Page 3.2.2.2's parents and it's own (if it has a submenu) will be listed, even if Page 3.4 or Page 3.2.3 also has submenus.
Topic wp-list-pages recursive hierarchical php menus Wordpress
Category Web