Mixing up sidebars
|Reported by:||dcole07||Owned by:|
I have a theme with multiple sidebars. I registered these sidebars within different files, then had the theme's function.php include them. The problem comes when using the Widgets page in the dashboard. When I assign widgets to "Left Sidebar" and "Right Sidebar", then view the site, as a visitor, the widgets are in the opposite sidebar. So the Widgets page says "Left Sidebar", but means "Right Sidebar" and vise versa.
The "Right Sidebar" has the value "sidebar-1" and is registered before the "Left Sidebar", which has the value "sidebar-2". But when they are displayed to visitors, the "Left Sidebar" is included in the code before the "Right Sidebar".
Do sidebars actually use the name given to them when using get_sidebar(); ?
I guess this could be a slip-up on my part, but I've checked and I don't see anything wrong.