Home › Forums › ACF PRO › get user tyle field separately › Reply To: get user tyle field separately
I’m looking for similar info – I’d like authors to be able to select a user (so I used filed type “User”), and then I want to display the selected user’s name, and email address, and leave the rest of the array out. Something like this (if I was after the info from author, but I want to get this from selected user):
<?php
$author_id = get_the_author_meta( ‘first_name’);
echo $author_id;
$author_email = get_the_author_meta( ‘user_email’ );
echo $author_email;
?>
Any word?
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.