Home › Forums › General Issues › Get value from User ID to Display Name? › Reply To: Get value from User ID to Display Name?
You’re using get_post_meta() instead on get_field(). ACF only stores the user ID, so this is what will be returned by get_post_meta(). If you use get_field() ACF will return a user object, array, or ID depending on your field settings. In either case you need to get the user object and show the parts of it you want. https://codex.wordpress.org/Function_Reference/get_userdata
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.