@elliot and if the field to pull the user is a sub field? How would this array? I tried several times, but it returns only the first letter of the field $values = get_sub_field('relationship_user');
This:
$values = get_field('user');
if($values)
{
echo '<ul>';
foreach($values as $value)
{
echo '<li>' . $value['display_name'] . '</li>';
}
echo '</ul>';
}
dont work, return first letter of the field
This code by @demo38 work:
$values = get_field('user');
if($values){
$array = array_values($values);
echo $array[5];
Why?