true, 'classname' => 'anews_Recent_Posts_Widget', 'description' => esc_html__( 'Display Recent Posts with thumbnails', 'anews' ) ); parent::__construct( $widget_id, $widget_title, $widget_settings ); } // The widget form (for the backend ) public function form( $instance ) { // Set widget defaults $defaults = array( 'title' => esc_html__( 'Recent Posts', 'anews' ), 'anews_count' => 3, ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>

$anews_count, 'ignore_sticky_posts' => 1, 'post__not_in' => $anews_sticky, ) ); ?> have_posts() ) : while ( $anews_query ->have_posts() ) : $anews_query ->the_post(); ?>
<?php the_title_attribute(); ?>