'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'], ), ), ) ); ?>