WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

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

How can i use more than 20 sidebars in wordpress. I'm working on a big information portal, and I need big amaunt of sidebars (about 40, I guess). So I have 20 sidebars now and when I add one more it overrides one of the previous entered. I searched the web about similar problems, but I found nothing ... Can somebody help me get out of this situation?

Link to the site

share|improve this question
That should not happen. Are you using register_sidebars() with a fixed number as first argument? – toscho Apr 28 '13 at 15:07
up vote 0 down vote accepted

Just tried it on a test install with twenty-something sidebars, all works fine. Note that id parameter should be unique between all of them. name doesn't have to be, but it's nice to keep it unique as well so as to avoid confusion in the admin UI.

register_sidebar( array(
    'name' => 'twenty-three',
    'id' => 'sidebar-23',
    'description' => 'dummy description',
    'before_widget' => '<aside id="%1$s" class="widget %2$s">',
    'after_widget' => '</aside>',
    'before_title' => '<h3 class="widget-title">',
    'after_title' => '</h3>'
) );
share|improve this answer
It is unique ... Just tried on a fresh install and not work with my theme :( If there is some issue with themes ? – Христо Атанасов Apr 28 '13 at 20:17
Possibly, because it works on the twentytwelve theme. – montrealist Apr 28 '13 at 21:36
I can't believe ... It is working now. All the day it didn't work, and now it's working. I dont know how. I was just waiting for help here. I'll accept your answer because it is correct. ;) – Христо Атанасов Apr 28 '13 at 22:27

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.