'widget_latest_blog clearfix', 'description' => __('Displays Blog Widgets on FrontPage', 'arise')); $control_ops = array('width' => 200, 'height' => 250); parent::__construct(false, $name = __('TF: FP Blog Widget', 'arise'), $widget_ops, $control_ops); } function form($instance) { $instance = wp_parse_args(( array ) $instance, array('title' => '','description' => '','number' => '3','post_type'=> 'latest','category' => '', 'checkbox' => '')); $checkbox = esc_attr($instance['checkbox']); $title = esc_attr($instance['title']); $description = esc_attr($instance['description']); $number = absint( $instance[ 'number' ] ); $post_type = $instance[ 'post_type' ]; $category = $instance[ 'category' ]; ?>

/>

id="get_field_id( 'post_type' ); ?>" name="get_field_name( 'post_type' ); ?>" value="latest"/>
id="get_field_id( 'post_type' ); ?>" name="get_field_name( 'post_type' ); ?>" value="category"/>

' ','name' => $this->get_field_name( 'category' ), 'selected' => $category ) ); ?>

$number, 'post_type' => 'post', 'ignore_sticky_posts' => true ) ); } else { $get_featured_posts = new WP_Query( array( 'posts_per_page' => $number, 'post_type' => 'post', 'category__in' => $category ) ); } echo '' .$before_widget; ?> '; echo '

' . esc_html( $title ) . '

'; ?>

'; } ?>
have_posts() ):$get_featured_posts->the_post(); ?>
»

'; echo '
';?> '; } } ?>