Text Widget creates a
I think WordPress widgets create li tags on default. If you want the bullet points removed you could fix that with a css approach. .widget li { list-style: none; }
I think WordPress widgets create li tags on default. If you want the bullet points removed you could fix that with a css approach. .widget li { list-style: none; }
The sidebar ID is used to uniquely identify this specific sidebar. If you don’t set it and something creates another, you could find that your sidebar moves somewhere unexpected! It doesn’t need to be numeric – you can use strings, too.
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
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.