List all sidebar names?

Loop through the global: <select> <?php foreach ( $GLOBALS[‘wp_registered_sidebars’] as $sidebar ) { ?> <option value=”<?php echo ucwords( $sidebar[‘id’] ); ?>”> <?php echo ucwords( $sidebar[‘name’] ); ?> </option> <?php } ?> </select> Note: The ucwords() function is only there to display it exactly as you asked. Not sure if you really want that. How to … Read more

Get list of all registered sidebars

Hmm… I’m not sure if this is the best way to do it but it’s simple: I looked in register_sidebar() and found that new sidebars are simply tacked onto an array:$wp_registered_sidebars And I guess that’s that. If they ever change the name of the variable, I guess I’d be screwed.