'widget_blog_post', 'description' => esc_html__( 'Widget to display recent posts with large image and date.', 'blog-mantra' ), ); parent::__construct( 'blog-mantra-giant-recent-posts', esc_html__( 'Blog Mantra: Recent Posts Giant', 'blog-mantra' ), $options ); } function widget( $args, $instance ) { $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? '' : $instance['title'], $instance, $this->id_base ); $post_nos = ! empty( $instance['post_nos'] ) ? $instance['post_nos'] : 3; echo $args['before_widget']; ?>
absint( $post_nos ), 'no_found_rows' => true, 'post__not_in' => get_option( 'sticky_posts' ), 'ignore_sticky_posts' => true, 'post_status' => 'publish', ); $recent_posts_giant = new WP_Query( $recent_args_giant ); if ( $recent_posts_giant->have_posts() ) : while ( $recent_posts_giant->have_posts() ) : $recent_posts_giant->the_post(); ?>
esc_html__( 'Recent Posts', 'blog-mantra' ), 'post_nos' => 3, ) ); ?>