Home › Forums › Front-end Issues › Display user field value in template › Reply To: Display user field value in template
Hi @flowbob
I think you are confused as to how to output a value in ACF. Can you please read the getting started docs and get_field / the_field.
You can’t use a shortcode in PHP like you have.
If you are using ACF 4.3.3 or higher, you can pass in the $user object to the get_field function to load the value like so:
$image = get_field('profilbild', $user);
Thanks
E
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.