Home › Forums › Front-end Issues › User Field Type Documentation Missing › Reply To: User Field Type Documentation Missing
Thank you @acf-support Jimmy James! What I wish though, is if this information – “To get the user ID from the user custom field, you can pass a false value to the third parameter of the get_field()
” could be public.
If I had known how to get the ID from the field, I would have figured it. I am grateful for the help.
To anyone else wondering, to get the User ID from the User Field,
$userID = get_field('field-name', false, false);
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.