'post_list_widget', 'description' => esc_html__( 'Display a list of popular posts', 'nanopress' ) ); parent::__construct('nanopress_popular_widget', esc_html__('jellywp: popular post', 'nanopress'), $widget_ops); } /*-----------------------------------------------------------------------------------*/ /* Display Widget /*-----------------------------------------------------------------------------------*/ function widget( $args, $instance ) { extract( $args ); $title = apply_filters('Popular Posts', $instance['title'] ); $num_posts = $instance['num_posts']; echo '