esc_html__( 'Display Latest Post Slider', 'blogstart' ) )
);
}
/**
* Front-end display of widget.
*
* @see WP_Widget::widget()
*
* @param array $args Widget arguments.
* @param array $instance Saved values from database.
*/
public function widget( $args, $instance ) {
echo wp_kses_post( $args['before_widget'] );
echo wp_kses_post( $args['before_title'] . apply_filters( 'widget_title', esc_html( $instance['title'] ) ) . $args['after_title'] );
?>
'post',
'posts_per_page' => $postcount,
)
);
if ( $popularpost->have_posts() ) :
while ( $popularpost->have_posts() ) :
$popularpost->the_post();
if ( has_post_thumbnail() ) :
?>
ID, 'category' );
if ( is_array( $categories ) ) {
foreach ( $categories as $category ) {
$link = get_category_link( $category->term_id );
echo '
' . esc_html( $category->name ) . '';
}
}
?>
', '' ); ?>