'Display posts from a category', 'classname' => 'widget_alx_posts') );; } /* Widget /* ------------------------------------ */ public function widget($args, $instance) { extract( $args ); $instance['title']?NULL:$instance['title']=''; $title = apply_filters('widget_title',$instance['title']); $output = $before_widget."\n"; if($title) $output .= $before_title.$title.$after_title; ob_start(); ?> array( 'post' ), 'showposts' => $instance['posts_num'], 'cat' => $instance['posts_cat_id'], 'ignore_sticky_posts' => true, 'orderby' => $instance['posts_orderby'], 'order' => 'dsc', 'date_query' => array( array( 'after' => $instance['posts_time'], ), ), ) ); ?> '', // Posts 'posts_thumb' => 1, 'posts_category' => 1, 'posts_date' => 1, 'posts_num' => '4', 'posts_cat_id' => '0', 'posts_orderby' => 'date', 'posts_time' => '0', ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>

" />

List Posts

>

" name="get_field_name("posts_num") ); ?>" type="text" value="" size='3' />

esc_attr( $this->get_field_name("posts_cat_id") ), 'selected' => $instance["posts_cat_id"], 'show_option_all' => 'All', 'show_count' => true ) ); ?>


Post Info

>

>