__( 'Display recent blog posts with Thumbnails.', 'bitter-sweet' ), ) ); } public function widget( $args, $instance ) { $title = apply_filters( 'widget_title', $instance['title'] ); $no_of_posts = apply_filters( 'no_of_posts', $instance['no_of_posts'] ); echo $args['before_widget']; if ( ! empty( $title ) ) echo $args['before_title'] . $title . $args['after_title']; // WP_Query arguments $query_args = array ( 'post_type' => 'post', 'posts_per_page' => $no_of_posts, 'offset' => 0, 'ignore_sticky_posts' => 1 ); // The Query $recent_posts = new WP_Query( $query_args ); if($recent_posts->have_posts()) : ?> have_posts()) : $recent_posts->the_post(); ?>

Sorry ! There are no posts yet.