';
$countAuthor++;
endif; // end if role check
endforeach; // end foreach loop
echo '';
echo '
'.$after_widget;
} // end of widgets
function abrp_posts_groupby($groupby) {
global $wpdb;
$groupby = "{$wpdb->posts}.post_author";
return $groupby;
} // end of abrp_posts_groupby function
//Update the widget function begain
function update( $new_instance, $old_instance ) {
$instance = $old_instance;
//Strip tags from title and name to remove HTML
$instance['title'] = strip_tags( $new_instance['title'] );
// Strip tags from role and role to remove HTML
$instance['role'] = strip_tags( $new_instance['role'] );
// Strip tags from role and role to remove HTML
$instance['profile_style'] = strip_tags( $new_instance['profile_style'] );
return $instance;
} // end of function update
function form( $instance ) {
//Set up some default widget settings.
//
$instance['profile_style'] = array();
$defaults = array( 'title' => __('Blog Authors', 'default'));
$instance = wp_parse_args( (array) $instance, $defaults );
// Widget Title: Text Input.
?>