'shapely-recent-posts col-sm-12 text-center', 'description' => esc_html__("Widget to show recent posts with thumbnails", 'shapely')); parent::__construct('shapely_recent_posts', esc_html__('[Shapely] Recent Posts', 'shapely'), $widget_ops); } function widget($args, $instance) { extract($args); $title = isset($instance['title']) ? $instance['title'] : esc_html__('recent Posts', 'shapely'); $limit = isset($instance['limit']) ? $instance['limit'] : 5; echo $before_widget; ?>
$limit, 'post_type' => 'post', 'ignore_sticky_posts' => 1 ); $featured_query = new WP_Query($featured_args); $bootstrapColWidth = floor(12/$featured_query->post_count); if ($featured_query->have_posts()) : ?>
    have_posts()) : $featured_query->the_post(); ?>