Calling different sidebars code
-
Hi
I know this topic has been raised before but having searched through, I’m still struggling.
I’ve created 2 new sidebar configurations (called sidebarblog and sidebarindex) which, you may guess, display different sidebars depending on it being a blog page or a mainpage
I’ve tested the code within each and know it to work.
The sidebar.php now contains the following :
<?php if (is_home()) {
get_sidebarblog();
} else {
get_sidebarindex();
}
?>I get an error that I don’t understand : Fatal error: Unknown function: get_sidebarindex() in …sidebar.php on line 4
The url is http://imjon.com
That suggests to me that the files it’s looking for don’t exist, but they do. I’m sure there’s something very simple I’m doing wrong here, but I can’t see it. If you can help, I’d be grateful.
Jonathan
The topic ‘Calling different sidebars code’ is closed to new replies.