I'm haivng a similar issue...
Frumph, my sidebar pages are named like adelpha's. I have some pages with like names (gallery, etc.) so I named the sidebar pages "sidebar-gallery" just to differentiate.
My issue is, the various sidebars are showing up in the widget page and I'm populating them with different widgets, but no matter what I put in, they all have the same widgets.
function.php:
if ( function_exists('register_sidebar') ) {
register_sidebar(array('name'=>'sidebar_default',
'before_widget' => '<li>',
'after_widget' => '</li>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
register_sidebar(array('name'=>'sidebar_gallery',
'before_widget' => '<li>',
'after_widget' => '</li>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
register_sidebar(array('name'=>'sidebar_about',
'before_widget' => '<li>',
'after_widget' => '</li>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
}
sidebar_default:
<?php /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_default') ) : ?>
page.php:
<?php get_sidebar('sidebar_default'); ?>
sidebar_gallery & gallery.php have the same code with the names replaced accordingly (gallery.php being a custom template page).
No matter what widgets I add in to those sidebars, every one of them is a copy of sidebar_default.php.
What am I doing wrong here?!
Thanks in advance!