Home › Forums › General Issues › Print the Value of a User Field Type By get_post_meta() › Reply To: Print the Value of a User Field Type By get_post_meta()
Thank you John, it’s solved.
For anyone who is into a same situation. The below code did the work.
$user_id = get_post_meta( get_the_ID(), 'author_name', true );
$user_info = get_userdata($user_id);
echo 'Email: ' . $user_info->user_email;
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.