ACF Taxonomy Terms Outputted as only Term ID instead of Term Name

I apologize if this has been explained elsewhere before. Though if that’s the case, feel free to point me to the relevant thread.

On our store, I’ve installed ACF Pro and have a fairly elaborate field group to make adding products easier given a lot of parameters we use. Originally, I had custom taxonomies made for a variety of parameters that the standard categories wasn’t enough for and I didn’t think at the time that ACF custom fields could be connected to those taxonomies by choosing a Relational Field Type. This is helpful as I had ended up making the same custom fields I used in the custom taxonomies which basically doubled the work when adding a product.

I went ahead and changed one of the fields to a Taxonomy type and had it connected to one of the custom taxonomies I had setup. I had it set to save and load terms and also had return value set to Term ID.

However, when displaying the value for example with something like {{dc:post:meta key="brand"}} it would just output the Term ID and not the Term name. My setup doesn’t involve the need to use loopers so I’m not sure how to proceed from here.

Hello @dobacco,

Thank you for the inquiry.

Did you use the dynamic content in a Single template or an Archive template? We may need to log in to the site to check how your ACF fields, taxonomies and CS templates are set up. If you haven’t done so yet, please refer to the documentation below for more info about ACF dynamic content fields.

https://theme.co/docs/acf-dynamic-content
https://theme.co/docs/acf-pro-and-loopers

We’ll check the thread again once the login info is available.

Best regards,

Added a Secure Note above. In the meanwhile I will read up on your suggestions. Thanks!

Hey @dobacco,

A post or product can have one or more than one taxonomies. With this, you will ALWAYS need a looper in displaying the category, tag or any taxonomy. You can use the Terms element as you reference:

Hope this makes sense.

I guess I should have read the manual first. It works as you suggested. This just means I’ll need to have a lot of loopers to fit the criteria of what we’re trying to do but if it works, I’m not complaining. Thanks again for pointing me in the right direction.

Now to figure out how to display brand names from Woocommerce Brands. I figure using shortcode would be sufficient but the documentation doesn’t even show the shortcodes. Perhaps I will have to use loopers for this as well!

Looks like loopers was the way for Brands too.

Basically, you have to use Current Post Terms and select Brands as the Taxonomy. For the output, you would still use {{dc:term:title}}.

Thanks for pointing me in the right direction!

Hey @dobacco,

Yes, that is the right steps in displaying the current product taxonomies.
We are just glad we were able to direct you in the right direction.

Cheers.