• Hi,

    Here is what i have in my template functions.php

    if ( function_exists(‘register_sidebar’) )
    register_sidebars(
    3,array(
    ‘name’ => “sidebar-%d”,
    ‘id’ => “sidebar-%d”,
    ‘description’ => ”,
    ‘before_widget’ => ”,
    ‘after_widget’ => ”,
    ‘before_title’ => ‘<h2>’,
    ‘after_title’ => ‘</h2>’)
    );

    Works perfectly, i use it fine, i add widgets in the panel too.
    However when i try to open the admin widgets page again, it doesn’t show anything, totally empty sidebars. (while they still show on the site).

    Is it a bug? I’m missing something?
    Or maybe it is something i can’t do..

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter kevinff

    (@kevinff)

    Ok checked the db, it seems to add it as “sidebar-%d” in it, even though it works in template tags..
    Better forget this trick.

    Thread Starter kevinff

    (@kevinff)

    Well i reopen, it seems to be some kind of bug anyway and i’d like to know what was wrong.. as in the admin panel it shows sidebar-1 sidebar-2 sidebar-3 fine, it’s just broken in the db.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘register_sidebars with %d as id/name -> admin pages can't show’ is closed to new replies.