__( 'Displays latest blog posts. Only for page builder.', 'maskitto-light' ), 'panels_icon' => 'dashicons dashicons-admin-post', 'panels_groups' => 'theme-widgets' ) ); } /* Front-end display of widget. */ public function widget( $args, $instance ) { if( !isset($instance['limit']) || !$instance['limit']) : $limit = 6; else : $limit = intval( $instance['limit'] ); endif; $loop = new WP_Query( array('post_type' => 'post', 'posts_per_page' => $limit ) ); $count_posts = wp_count_posts(); ?>

have_posts() ) : $loop->the_post();?>
publish > 6 ) : ?>