Home › Forums › ACF PRO › Loop to call Category Custom Fields using a taxonomy selection field › Reply To: Loop to call Category Custom Fields using a taxonomy selection field
Hi,
I am just a user so no super expert but have you set the Return of the field to the correct one?
When you configure the field you can select what ACF returns when get_field is called.
There are only a few choices so try each one.
$term->name implies an array needs to be returned…
Also, printing out what get_field returns (as an array) helps a lot to see what is returned.
Hope that helps.
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.