刚在20多个边栏的测试安装上试用过,一切正常。请注意id
参数在它们之间应该是唯一的。name
不必如此,但最好保持它的唯一性,以避免在管理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>\'
) );