Support

Account

Home Forums ACF PRO How To Use the User Field & Call Extra Data Reply To: How To Use the User Field & Call Extra Data

  • Ok, so I think I might have solved it. Please let me know if this is the best way tho…

    $values = get_field('choose_directory');
    if($values)
    {
    	echo '<ul>';
     
    	foreach($values as $value)
    	{
    	   $user_db = $value['ID'];	
               
               echo '<li>' . $value['display_name'] . '</br>';
               the_field('phone_number', 'user_'. $user_db );
               echo '</li>';
    	}
     
    	echo '</ul>';
    }