$user = new WP_User( $user->ID );
if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
foreach ( $user->roles as $role )
echo ucfirst($role);
}
$user = new WP_User( $user->ID );
if ( !empty( $user->roles ) && is_array( $user->roles ) ) {
foreach ( $user->roles as $role )
echo ucfirst($role);
}