با سلام من از کد زیر برای نمایش نقش کاربر کنار نام اون استفاده میکنم <?php $user_roles = $current_user->roles; $user_role = array_shift($user_roles); if ($user_role == 'administrator') { echo 'مدیر'; } elseif ($user_role == 'editor') { echo 'ویرایشگر'; } elseif ($user_role == 'author') { echo 'نویسنده'; } elseif ($user_role == 'contributor') { echo 'مشارکت کننده'; } elseif ($user_role == 'subscriber') { echo 'مشترک'; } else { echo '<strong>' . $user_role . '</strong>'; } ?>