Support

Account

Home Forums ACF PRO How to retrieve Name from ACF User field type? Reply To: How to retrieve Name from ACF User field type?

  • You can get the username by using something like:

    $user_field = get_field('user_field_name');
    if ( $user_field ) {
      $user_info = get_userdata( $user_field['ID'] );
      echo 'Username: ' . $user_info->user_login;
    }