WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created a custom sidebar with this code in my theme's functions.php:

        'name' => __('Article - Below Content'),
        'id' => 'zg-article-footer',
        'description' => 'Use this sidebar to place widgets that will appear directly underneath the Article'

When I navigate to Appearance > Widgets in my Admin, this sidebar is always the first one on the top of my list of sidebars, and it's always "open" (that is, you can see the description and the list of widgets attached to it). None of my other sidebars are open, and WP Admin doesn't seem to remember my last-opened sidebar.

Is there an argument I should use when registering the sidebar that will tell it to default to closed? Or is there an option somewhere else entirely?

share|improve this question
up vote 1 down vote accepted

This is default behavior. I believe that sidebars are listed by ID in Dashboard -> Appearance -> Widgets, and that the sidebar with ID 0 is always open in the default view.

share|improve this answer
Interesting. But are you then supposed to use numeric IDs for sidebars? I would have thought that could be a conflict risk... my id is a unique identifier that should not collide with any others. Is there a better alternative? – Tom Auger May 11 '11 at 19:36
The issue isn't with your sidebar's ID, per se, but rather that WordPress always displays the first sidebar as open, and all other sidebars as closed. – Chip Bennett May 11 '11 at 20:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.