Home › Forums › Front-end Issues › Displaying Multiple Values from Custom Taxonomy Terms › Reply To: Displaying Multiple Values from Custom Taxonomy Terms
This line
$related = get_field('related_industries', $queried_object);
Is returning an array of term ID values. If you want to show information about that the terms then you should set it to return Term Object
then loop over the returned array to display what you want.
if ($related) {
foreach ($related as $term) {
echo $term->name;
}
}
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.