Customised sidebar for page and its children
-
I am trying to include my Portfolio page and all of its subpages in the conditional below so they have sidebar.php attached and all other pages on the site have sidebar2.php. Seems like a silly question that should be easy to find online but somehow I managed not to.
How do I add the subpages to this??
<?php if (is_page('portfolio')) { include(TEMPLATEPATH . '/sidebar.php'); } else { include(TEMPLATEPATH . '/sidebar2.php'); } ?>
Thanks in advance!
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Customised sidebar for page and its children’ is closed to new replies.