Home › Forums › General Issues › Taxonomy Term values from user profile › Reply To: Taxonomy Term values from user profile
Hi @juxprose
Because you have selected ‘Term Object’ as the return type, you are getting an object (just like you have chosen).
This object can be seen clearly in your var_dump.
Is there a problem that I am not seeing? Do you need help rending the object? This would work:
<?php
$specialtopic = get_field('specialist_topic', 'user_' . $curauth->ID);
?>
<h3><?php echo $specialtopic->name; ?></h3>
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.