if Sub Categories exist?
-
Hey guys,
I currently have a few pages setup on my ‘blog’ and some have sub sections while others don’t.
Here’s the code I’m using…
<?php if ((is_page(2)) || (is_page(3)) || (is_page(4))) {include (‘sidebar_sub.php’); }
else {include (‘sidebar_default.php’); }
?>This is very unreliable to me, as I have to change the code every time I add a new page to the site that uses sub sections.
ANOTHER HUGE problem I’m having with this code is when I click on one of the sub sections in the main category the actual sub sections disappear from the sidebar.
Can anyone point me in the right direction where I might be able to resolve this issue?
Thanks,
Mario
The topic ‘if Sub Categories exist?’ is closed to new replies.