How can I register an additional sidebar?
For my classipress site I've created several different page templates, and I'm want to create additional sidebars for these different templates.
So, I went into theme-sidebars.php and added the following code (a copy of the 'page sidebar', renamed to 'public sidebar':
register_sidebar(array(
'name' => __('Public Sidebar','appthemes'),
'id' => 'sidebar_page',
'description' => __('This is your ClassiPress public sidebar.','appthemes'),
'before_widget' => '<div class="shadowblock_out" id="%2$s"><div class="shadowblock">',
'after_widget' => '</div><!-- /shadowblock --></div><!-- /shadowblock_out -->',
'before_title' => '<h2 class="dotted">',
'after_title' => '</h2>',
));
I then copied sidebar-page.php and changed all mentions of 'page' to 'public', and renamed the file to sidebar-public.php
I then went into my template and replaced:
<?php get_sidebar('page'); ?>
with:
<?php get_sidebar('public'); ?>
The sidebar is recognised in the widget section of the admin panel, but the widgets I have dragged there aren't brought up on the page using the template. The blogroll is being shown instead, so I'm guessing the dynamic sidebar has not been registered properly.
Any ideas of how to do it?