'itx_tabbed_sidebar', 'description' => __('Sidebar containing tabs that displays posts, categories, pages, comments, tags, etc.', 'itx'), ); $this->WP_Widget('itx_tabbed_sidebar', __('Tabbed Sidebar', 'itx'), $widget_args); $this->option = array( 'none'=>__('None','itx'), 'categories'=>__('Categories','itx'), 'posts'=>__('Recent Posts','itx'), 'comments'=>__('Recent Comments','itx'), 'archives'=>__('Monthly Archives','itx'), 'meta'=>__('Meta','itx'), 'calendar'=>__('Calendar','itx'), 'blogroll'=>__('Blogroll','itx'), 'tags'=>__('Tag Cloud','itx'), 'pages'=>__('Pages','itx'), "text"=>__('Custom Text','itx'), ); $this->title = array( 'none'=>__('None','itx'), 'categories'=>__('Categories','itx'), 'posts'=>__('Posts','itx'), 'comments'=>__('Comments','itx'), 'archives'=>__('Archives','itx'), 'meta'=>__('Meta','itx'), 'calendar'=>__('Calendar','itx'), 'blogroll'=>__('Blogroll','itx'), 'tags'=>__('Tags','itx'), 'pages'=>__('Pages','itx'), ); } function widget($args, $instance){ extract($args); echo ' '.$before_widget.'
'; for ($i=0;$i<5;$i++){ $type=$instance['tabbed'][$i]; if ($type=='none') {continue;} echo'
'; if ($type=='categories'){ echo''; }elseif ($type=='posts'){ echo ''; }elseif ($type=='comments'){ echo ''; }elseif ($type=='archives'){ echo ''; }elseif ($type=='meta'){ echo '
'; } echo'
'.$after_widget; } function form($instance){ extract($instance); ?>

get_field_id('t').$i.'" name="'.$this->get_field_name('tabbed')."[$i]".'">'.$this->itx_tab_opts($tabbed[$i]).'
:

:
'; }?> You may oveflow the head section of the tab if you display all of them. Choose wisely
option as $id => $val ) { $ret.= '