Support

Account

Home Forums ACF PRO issues displaying 'Relationship user field' Reply To: issues displaying 'Relationship user field'

  • Hi @virtualexpo and @elle

    User field type returns arrays with user information in it. You can always use print_r() or var_dump() to show the data. This page should give you more idea about it: http://www.advancedcustomfields.com/resources/debug/. So, you can use this code to see the returned data:

    echo "<pre>";
    print_r(get_field("user_field_name"));
    echo "</pre>";

    To get the custom field from the user, please take a look at this page: http://www.advancedcustomfields.com/resources/how-to-get-values-from-a-user/.

    I hope this helps.