Title: Multiple Sidebars issue
Last modified: August 20, 2016

---

# Multiple Sidebars issue

 *  [estevancarlos](https://wordpress.org/support/users/estevancarlos/)
 * (@estevancarlos)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/multiple-sidebars-issue/)
 * I’m using register_sidebars to create multiple sidebars:
 *     ```
       function ec_register_sidebars() {
       register_sidebars( 3,
       	array(
       	'name' => 'Sidebar %d',
       	'id' => "sidebar-$i",
       	'before_widget' => '<li id="%1$s" class="widget %2$s">',
       	'after_widget' => '</li>',
       	'before_title' => '',
       	'after_title' => ''
       	)
       );
       ```
   
 * **And this is in the theme:**
 *     ```
       <?php if ( is_active_sidebar( 'Sidebar 1' ) ) : ?>
       <?php dynamic_sidebar( 'Sidebar 1' ); ?>
       	<?php else : ?>
       	No primary sidebar content
       <?php endif; ?>
       ```
   
 * Three sidebars appear within the WP admin. I am able to place widgets in all 
   three. However nothing ever shows up in the theme when I load “Sidebar 1” **but**“
   Sidebar 2” and “Sidebar 3” work fine.
    What’s the issue?
 * Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [estevancarlos](https://wordpress.org/support/users/estevancarlos/)
 * (@estevancarlos)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/multiple-sidebars-issue/#post-2497386)
 * I just noticed that if I have this:
 *     ```
       <?php if ( is_active_sidebar( 'Sidebar 2' ) ) : ?>
       <?php dynamic_sidebar( 'Sidebar 1' ); ?>
       	<?php else : ?>
       	No primary sidebar content
       <?php endif; ?>
       ```
   
 * “Sidebar 1” will display when set up this way. How come?
 *  Thread Starter [estevancarlos](https://wordpress.org/support/users/estevancarlos/)
 * (@estevancarlos)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/multiple-sidebars-issue/#post-2497601)
 * Any hints? I’ve posted this on Sitepoint, StackExchange and here and no one has
   commented. It’s become rather mysterious now. Is the Sidebar thing in WordPress
   buggy?
 *  Thread Starter [estevancarlos](https://wordpress.org/support/users/estevancarlos/)
 * (@estevancarlos)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/multiple-sidebars-issue/#post-2497623)
 * None of the sidebars are working at the moment. Not sure why:
    [http://estevancarlos.kodingen.com/ecv7/?projects=rada-2](http://estevancarlos.kodingen.com/ecv7/?projects=rada-2)

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Multiple Sidebars issue’ is closed to new replies.

## Tags

 * [sidebar](https://wordpress.org/support/topic-tag/sidebar/)
 * [widgets](https://wordpress.org/support/topic-tag/widgets/)

 * 3 replies
 * 1 participant
 * Last reply from: [estevancarlos](https://wordpress.org/support/users/estevancarlos/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/multiple-sidebars-issue/#post-2497623)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
