I have a looper which lists a series of events by date. I also have categories for the events.
I am using dc to look up the category of each item in the looper and display the category name. This works fine. But I have also used ACF to create a custom color for each category. When I try to use this value to set the background color of the div, it fails.
If I take my same dc code and display it, I can see the rgba value just fine though.
My code for displaying the category name:
{{dc:term:name term="{{dc:acf:post_field field=\"kategori\"}}"}}
My code for the color associated with the category:
{{dc:acf:term_field field="hendelse_farge" term="{{dc:acf:post_field field=\"kategori\"}}"}}
So, the second code displays fine when I use it as text, displaying the rgba() value correctly, but doesn’t work in the color field itself.
I also used this code for the color but got the same results:
{{dc:term:meta term="{{dc:acf:post_field field=\"kategori\"}}" key="hendelse_farge"}}
Any ideas?