I dont understand why my sidebar isn't changing over to the second one on the other pages. I've gone in an told the pages that if your not on this page show sidebar 2. So the home page and blog page have a sidebar 1 and the rest of the pages have sidebar 2. But it's not working.
My code on my main theme layout looks like this:
<?php if(is_page('blog')) { ?>
<?php include(TEMPLATEPATH.'/sidebar2.php'); ?>
<?php } else { ?>
<?php include(TEMPLATEPATH.'/sidebar.php'); ?>
<?php } ?>
<?php get_footer(); ?>
So if I understand it correctly, if the page is blog show sidebar 1 if not show sidebar 2. I have sidebar.php
and sidebar-2.php
pages and they have widgets in them so I know when it's working.
Yet I don't see it doing anything. Is there something in the functions.php file I've forgotten to place in?