__('A widget that show personnal information', 'gdl_back_office'))); } // Output of the widget function widget( $args, $instance ) { global $gdl_widget_date_format, $personnal_widget_size; extract( $args ); $title = apply_filters( 'widget_title', $instance['title'] ); $personnal_cat = $instance['personnal_cat']; $show_num = $instance['show_num']; if($personnal_cat == "All"){ $personnal_cat = ''; } // Opening of widget echo $before_widget; // Open of title tag if ( $title ){ echo $before_title; echo $title; echo $after_title; } echo '
'; // Widget Content wp_reset_query(); $custom_posts = get_posts( array('post_type'=>'personnal', 'showposts'=>$show_num, 'personnal-category'=>$personnal_cat) ); if( !empty($custom_posts) ){ echo "