Hi, hoping someone can help.
I have created a site with 6 sidebars names:
sidebar.php
sidebar-events.php
sidebar-main.php
sidebar-mission.php
sidebar-resources.php
sidebar-services.php
I have registered them in the functions.php flie which reads as follows:
<?php
/**
* @package WordPress
* @subpackage Classic_Theme
*/
automatic_feed_links();
if ( function_exists('register_sidebar') )
register_sidebar(array(
'before_widget' => '<li id="%1$s" class="widget %2$s">',
'after_widget' => '</li>',
'before_title' => '',
'after_title' => '',
));
?>
<?php if ( function_exists ('register_sidebar')) {
register_sidebar ('main');
} ?>
<?php if ( function_exists ('register_sidebar')) {
register_sidebar ('events');
} ?>
<?php if ( function_exists ('register_sidebar')) {
register_sidebar ('mission');
} ?>
<?php if ( function_exists ('register_sidebar')) {
register_sidebar ('services');
} ?>
<?php if ( function_exists ('register_sidebar')) {
register_sidebar ('resources');
} ?>
And all the sidebars show up in the widgets section of the admin area.
Each page calls the appropriate sidebar using `
<?php get_sidebar(6); ?>`
I have tried using <?php include ('sidebar-resources.php') ?> and <?php get_sidebar(resources); ?> But the only sidebar that i can get to show is the default sidebar (with dynamic content)
Any ideas?
Oh the site is www.stjamescarlisle.org.uk