I have a custom post type (trip), and a custom made taxonomy assigned to it (trip category). For the taxonomy, I added (with ACF) a color picker field (slug: szin).
I want to show all the trips in a grid (query loop), and want to show the category assigned to each trip. Now the question is, how can I use the color picker field’s value as a backgroud color for these categories? The idea is very similar to what it is on the main page of the forum:
So far I’ve tried quite a few things, all of them at the dynamic data field under background: {acf_szin}, {term_meta:szin}… so far I didn’t explore the {echo}. Is there a way to do this without some custom PHP?
Thank you for pointing out this thread, but it still doesn’t work for me. If I use the attribute section, and set a static backround-color: red, than it works, but backround-color: {acf_szin} or background-color: {term_meta:szin} still doesn’t work. I think the problem might be with accessing the field, as it’s a field of the taxonomy assigned to the post, and not a field of the post itself. But still, I can access the category name with no problem ({post_terms_termslug}).