'blogged-category-posts' ); $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'blogged-category-posts-widget' ); $this->WP_Widget( 'blogged-category-posts-widget',theme_name .' - Category Posts', $widget_ops, $control_ops ); } function widget( $args, $instance ) { extract( $args ); $title = ''; $no_of_posts = ''; $cats_id = ''; if( !isset( $title )) { $title = apply_filters('widget_title', $instance['cat_posts_title'] ); } if( !isset( $no_of_posts )) { $no_of_posts = $instance['no_of_posts']; } if( !isset( $cats_id )) { $cats_id = $instance['cats_id']; } echo $before_widget; if ( $title){ echo $before_title; echo $title ; echo $after_title;} ?>