'aspro_slider_widget', 'description' => esc_html__( 'Best for Front Page', 'aspro' ) ); parent::__construct( 'aspro_slider_widget', ' ' . esc_html__( 'Aspro: Slider', 'aspro' ), $widget_ops ); } /** * Widget update. * * @param $new_instance * @param $old_instance * @return mixed */ function update( $new_instance, $old_instance ) { $instance = $old_instance; $instance['category'] = absint( $new_instance['category'] ); return $instance; } /** * Form view. * * @param $instance */ function form( $instance ) { ?>

' ', 'name' => $this->get_field_name( 'category' ), // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped 'selected' => (isset($instance['category']) && $instance['category'] != '')?absint($instance['category']):0 )); ?>

'post', 'category__in' => absint($oren_slider_category) )); if($cherry_biz_pro_blogs->have_posts()) : while ($cherry_biz_pro_blogs->have_posts()):$cherry_biz_pro_blogs->the_post(); ?>
style="background-image: url('');" >