Using conditional tags to display different menus
-
Hi all,
I am working on a website for someone who does not like drop-down menus. On the top navigation, there is a row of menu items that will appear across the top of every page. There is also a second menu that goes down the sidebar of each page, but the sidebar menu needs to display different items depending on what page you are on:
https://www.fitnessarts.org/new
As you can see when you click on Home, About, or Studio from the top menu, I have used widget logic to set it up so that different menus display on each of these pages using the conditional tag is_page(‘page-name-goes-here’). However, I also want the menus to display when you click on any of the subpages along the sidebar of each of those sections.
I have tried using the conditional tags is_page( array(139, 133, 137) ) and is_page( ‘139’, ‘133’, ‘137’ ) where the numbers are the different page numbers for each section but that didn’t work.
Does anyone have any suggestions for conditional tags to display a series of different pages, or a better way to do this?
Any advice would be appreciated.
- The topic ‘Using conditional tags to display different menus’ is closed to new replies.