Try this suggestion:
<?php
$user_id = get_current_user_id();
$user_groups = wp_get_object_terms($user_id, 'user-group', array('fields' => 'all_with_object_id'));
foreach($user_groups as $user_gro)
{
echo $user_gro->name;
}
?>
Try this suggestion:
<?php
$user_id = get_current_user_id();
$user_groups = wp_get_object_terms($user_id, 'user-group', array('fields' => 'all_with_object_id'));
foreach($user_groups as $user_gro)
{
echo $user_gro->name;
}
?>