I have created 2 sidebar files which are called from my header.php file and are working as they should using this code:
<?php
if (is_page('8')) {
include(TEMPLATEPATH . '/sidebar-custom.php');
}
if (is_page('15')) {
include(TEMPLATEPATH . '/sidebar-discuss.php');
}
if (is_page('17')) {
include(TEMPLATEPATH . '/sidebar-custom.php');
}
if (is_page('19')) {
include(TEMPLATEPATH . '/sidebar-custom.php');
}
if (is_page('21')) {
include(TEMPLATEPATH . '/sidebar-custom.php');
}
if (is_page('23')) {
include(TEMPLATEPATH . '/sidebar-custom.php');
}
if (is_page('25')) {
include(TEMPLATEPATH . '/sidebar-custom.php');
}
else {
include(TEMPLATEPATH . '/sidebar.php');
}
?>
page 15 is my blog page whoch you can view here:
http://www.thecreativexchange.co.uk/test/discuss/
my hope was that another sidebar would display on this page but it won't it just displays the sidebar.php file, i tried to change it to show my other sidebar which is sidebar-custom.php but again it will only show the sidebar.php file.
Not sure why I can have different sidebars on all the other pages except my blog page, any answers would be a huge help!