Having my sidebar menu appear on pages that are not in the menu
-
Hi. I have a sidebar (that you helped me with) which shows the siblings and children of the current page. It’s working really well.
However now I have some hidden pages in some of the sections. My ideal scenario is to have the menu display when someone is viewing one of those hidden pages.
e.g. If the structure is:
Patients
> Page 1
> Page 2
Doctors
> Doc Page 1
> Doc Page 2
> Hidden pageWhen the visitor is on “Hidden page” I would like them to see “Doc Page 1” and “Doc Page 2” in the sidebar.
I was thinking one way to do it might be to have a second sidebar widget, which only shows if the current page is NOT in the menu. And get it to show the siblings and parent if the parent is Level 2. But I couldn’t get that to work.
Here is my current shortcode:
[cmwizard menu=3 branch=current depth=2 ancestors=2 ancestor_siblings=2 exclude_level=”1″ siblings=1 container_id=”nav_menu-3″/]Is this possible?
Thanks
Josh
- The topic ‘Having my sidebar menu appear on pages that are not in the menu’ is closed to new replies.