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!
Are you building WordPress sites with ACF and @BeaverBuilder, and wanted to use your ACF Blocks in both the block editor and Beaver Builder?— Advanced Custom Fields (@wp_acf) May 10, 2023
The BB team recently added support for using ACF Blocks in Beaver Builder. Check it out 👇https://t.co/UalEIa5aQi
© 2023 Advanced Custom Fields.