sidebar – Is there an is_child for pages?
-
Hi all.
I have a pretty complex setup of pages being used as a CMS for a large corporate site (https://www.televox.com), and I’m using this current technique for each section’s submenu on the right side:
elseif ((is_page(‘automotive’)) || (is_page(’29’)) || (is_page(‘147’)) || (is_page(‘148’))) {
This is working, except that everytime I add a new page to the section, automotive for instance… I have to hardcode another || statement in order to have the other submenu items appear on the other subpages of that section.
I would love it if there was something similar to child_of=’automotive’
Any better way to do this than I am doing it?
Thanks a ton!
— Todd
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘sidebar – Is there an is_child for pages?’ is closed to new replies.