Home › Forums › Front-end Issues › Trying to get property of non-object (ACF 5.8.5) › Reply To: Trying to get property of non-object (ACF 5.8.5)
Hi there,
I think you just have to echo your $term only.
<?php echo $term; ?>
When you register a relashionship field (taxonomy), you have an option called “returning value”.
By default, this field return an “ID value”.
If you want to use several properties of your taxonomy (like description and title), you have to check the returning value as an Object.
Then you target the right property (name, description etc…)
Let me know if it helps,
RemSEO.
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.