'widget_posts_wrap', 'description' => __( 'Popster - Recent Posts', 'popster') ); // Create the widget. parent::__construct('recent_posts_popster', __('Popster - Recent Posts', 'popster'), $widget_ops); } /** @see WP_Widget::widget */ function widget($args, $instance) { extract( $args ); $default = array ('widget_title'=>__('Recent Posts','popster'), 'cats'=>'', 'cat'=>'', 'quantity'=>1, 'exclude'=>'', 'order'=>'date', 'display'=>'type-2', 'excerpt'=>'display', 'not_in'=>'' ); $instance = wp_parse_args($instance, $default); $widget_title = apply_filters('widget_title', $instance['widget_title']); $cats = $instance['cats']; $cat = $instance['cat']; $quantity = $instance['quantity']; $exclude = $instance['exclude']; $order = $instance['order']; //$display = $instance['display']; $display = 'type-3'; $excerpt = $instance['excerpt']; $not_in = $instance['not_in']; $thumbsize = array(54,54); if ( $excerpt != 'hide') $excp = ''; else $excp = 'no-exerpt'; // DISPALY WIDGET echo $before_widget; ?>
__('Recent Posts','popster'), 'cats'=>'', 'cat'=>'', 'quantity'=>1, 'exclude'=>'', 'order'=>'date', 'display'=>'type-2'); return $instance; } /** @see WP_Widget::form */ function form($instance) { $default = array ('widget_title'=>__('Recent Posts','popster'), 'cats'=>'', 'cat'=>'', 'quantity'=>1, 'exclude'=>'', 'order'=>'date', 'display'=>'type-2'); $instance = wp_parse_args( $instance, $default ); $widget_title = $instance['widget_title']; $cats = $instance['cats']; $cat = $instance['cat']; $quantity = $instance['quantity']; $exclude = $instance['exclude']; $order = $instance['order']; $display = $instance['display']; ?>

Widget title ( Will automaticly use category name when select single category ) :

Category :

Enter ID of categories e.g. 1,2,3,4. Leave it blank to pull all categories ( if multiple category choosed ).

Posts:

Order posts by: