Title: Cannot Register Multiple Sidebars
Last modified: August 19, 2016

---

# Cannot Register Multiple Sidebars

 *  [dbanksdesign](https://wordpress.org/support/users/dbanksdesign/)
 * (@dbanksdesign)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/cannot-register-multiple-sidebars/)
 * WordPress 2.9
    GoDaddy Hosting PHP5
 * I’m building a new theme and need multiple widgetized sidebars. So I added this
   code to the functions.php file:
 * <?php
 * if ( function_exists(‘register_sidebar’) )
    register_sidebar(array( ‘name’ =>‘
   Sidebar Mack’, ‘before_widget’ => ‘<div id=”%1$s” class=”mack”>’, ‘after_widget’
   => ‘</div>’, ‘before_title’ => ‘<h4>’, ‘after_title’ => ‘</h4>’, ));
 * if ( function_exists(‘register_sidebar’) )
    register_sidebar(array( ‘name’ =>‘
   Sidebar Biz’, ‘before_widget’ => ‘<div id=”%1$s” class=”biz”>’, ‘after_widget’
   => ‘</div>’, ‘before_title’ => ‘<h4>’, ‘after_title’ => ‘</h4>’, ));
 * if ( function_exists(‘register_sidebar’) )
    register_sidebar(array( ‘name’=>’
   Main Sidebar’, ‘before_widget’ => ‘<div id=”%1$s” class=”widget”>’, ‘after_widget’
   => ‘</div>’, ‘before_title’ => ‘<h4>’, ‘after_title’ => ‘</h4>’, ));
 * ?>
 * All 3 sidebars come up in the admin section so I can add widgets to them but 
   only the first registered sidebar displays on the website. (NOT a styling issue,
   viewed source code of a page and there is only the first sidebar showing up) 
   I’ve used this code before and it worked fine before…

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

 *  [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/cannot-register-multiple-sidebars/#post-1329489)
 * Check this past topic in the forum:
    [http://wordpress.org/support/topic/292678](http://wordpress.org/support/topic/292678)
 * R
 *  Thread Starter [dbanksdesign](https://wordpress.org/support/users/dbanksdesign/)
 * (@dbanksdesign)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/cannot-register-multiple-sidebars/#post-1329494)
 * Thanks, I just figured it out. I wasn’t calling the sidebars correctly in my 
   sidebar.php file.
 *  [Robert S](https://wordpress.org/support/users/rschilt/)
 * (@rschilt)
 * [16 years, 4 months ago](https://wordpress.org/support/topic/cannot-register-multiple-sidebars/#post-1329496)
 * The best problems are those that we end up solving ourselves!
 * Well done!
 * R

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

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Robert S](https://wordpress.org/support/users/rschilt/)
 * Last activity: [16 years, 4 months ago](https://wordpress.org/support/topic/cannot-register-multiple-sidebars/#post-1329496)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
