Home › Forums › General Issues › Selection – User Field – Output? › Reply To: Selection – User Field – Output?
Hi @dillehal
Hmm… You could try this:
$author = get_field('report_to', $curauth);
echo
'<a href="'
. get_author_posts_url( $author['ID'] ).
'">'
.get_author_meta('display_name', $author['ID']).
'</a>';
For more info, check out the following links:
https://codex.wordpress.org/Function_Reference/get_the_author_meta
https://codex.wordpress.org/Function_Reference/get_author_posts_url
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.