How do you force a sidebar widget to have a container div around all child widgets?

Sidebar functionality doesn’t handle wrapping container, you need to add that on template level. Here is example markup of sidebar-primary.php template (taken from Hybrid theme and simplified a bit): if ( is_active_sidebar( ‘primary’ ) ) : ?> <div id=”primary” class=”sidebar aside”> <?php dynamic_sidebar( ‘primary’ ); ?> </div><!– #primary .aside –> <?php endif; ?> Also I … Read more

filter out “uncategorized” from all category listings with one filter in functions.php?

I was finally able to figure this one out… Although I have to set the filter directly on the widget_categories_args method, so it does take two filter statements to do it. function my_categories_filter($cat_args){ $cat_args[‘title_li’] = ”; $cat_args[‘exclude_tree’] = 1; $cat_args[‘exclude’] = 1; $cat_args[‘use_desc_for_title’] = 0; return $cat_args; } add_filter(‘widget_categories_args’, ‘my_categories_filter’, 10, 2);