Support

Account

Home Forums General Issues User Name Field – Display Name Only Reply To: User Name Field – Display Name Only

  • Hi @ashley

    You can use an array like so:

    
    $values = get_field('teammembers');
    if($values)
    {
    	echo '<ul>';
     
    	foreach($values as $value)
    	{
    		echo '<li>' . $value['display_name'] . '</li>';
    	}
     
    	echo '</ul>';
    }