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.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.