'be_affiliate', 'description' => esc_html__('Display a list of most recent posts.', 'benews')) ); } function widget($args, $instance) { extract($args); $title = apply_filters('widget_title', empty($instance['title']) ? '' : $instance['title'], $instance, $this->id_base); $postcount = empty($instance['postcount']) ? '5' : $instance['postcount']; $offset = empty($instance['offset']) ? '' : $instance['offset']; $sticky = isset($instance['sticky']) ? $instance['sticky'] : 0; echo $before_widget; if (!empty($title)) { echo $before_title . esc_attr($title) . $after_title; } $args = array('posts_per_page' => $postcount, 'offset' => $offset, 'ignore_sticky_posts' => $sticky); $widget_loop = new WP_Query($args); ?> '', 'postcount' => '5', 'offset' => '0', 'sticky' => 0); $instance = wp_parse_args((array) $instance, $defaults); ?>

/>