A simple method of showing user role in our CMS frontend
<?phpfunction get_user_role($user_id) {global $wp_roles;$roles = array();$user = new WP_User( $user_id );if ( !empty( $user->roles ) && is_array( $user->roles ) ) {foreach ( $user->roles as $role )$roles[] .= translate_user_role($wp_roles->roles[$role]['name']);}return implode(', ',$roles);}?>
<?php echo get_user_role($user->ID); ?>