Support

Account

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;