Joe
October 2, 2025, 6:17pm
1
I want to give my CPT taxonomies a specific color as background on the card for the archive. I made a custom field with the slug: video_taxonomy_color
This is attached to the taxonomy. So when I click on the taxonomy, i get to choose a color with a color picker. But when I create u query loop and choose the video category inside and want to set a BG color for that text element, I can’t figure out what to put in.
My last try was: {post_terms_video-categories:video_taxonomy_color} but this did not work.
Any ideas?
Ferry
October 2, 2025, 8:30pm
2
Should be possible by selecting the background color as dynamic data under the raw tab
The color must be in the query (so the taxonomies have to be) and should just pop up on dynamic data.
If it is a WordPress custom field {cf_video_taxonomy_color}
Maybe try the include field on the query tab and include the field
Joe
October 2, 2025, 8:42pm
3
Tnx for your response,
thi got me {acf_video_taxonomy_color} but it doesn’t work for some reason
Ferry
October 2, 2025, 9:02pm
4
On what type of element do you apply it? I use those as background and they work like that from a acf field attached to the post .
Can you output the hex as text on the page?
Is the input a hex value, including the # like #000000 for black?
Joe
October 2, 2025, 9:06pm
5
This what you mean? Sry feel a bit stupid. I want to answer your question, just not sure what it’s supposed to be.
I’m just trying to change the background of a basic text element. Which is in a query loop.
Ferry
October 2, 2025, 9:13pm
6
yes you are using hex values so that should work.
Can you use that text box with the dynamic data with the (acf_video_taxonomy_color} tag to see what/and if it has output?
This way, it “should” display the #bb8eff if it is able to get the field.
If not then the field is somehow not inside the query
Joe
October 2, 2025, 9:20pm
7
What do you mean, use the color for the text itself instead of the background?
Ferry
October 2, 2025, 9:21pm
8
Yes. just to see if it works
Joe
October 2, 2025, 9:23pm
9
It doesn’t. But the categories of the videos get rendered fine. I just cant change the colors of the text or background.
Joe
October 2, 2025, 9:25pm
10
Videos Archive - eValuatePoker can see them here. They shoulld be in the query loop
Ferry
October 2, 2025, 9:26pm
11
Oke so this means the color is not being queried. This could be because of default fields not including the new field with the color.
Give me a sec to try it myself and see how to get the color.
Joe
October 2, 2025, 9:34pm
12
Sure. I have another project from which I pulled the color from a custom field inside the CPT post. That worked, so I kinda expected this to do as well.
Ferry
October 2, 2025, 9:43pm
13
It seems to be more difficult than i thought.
If the color is inside the custom posttype it is easy, but when connected to the Taxonomies it’s not.
Ive tried all dynamic data outputs and all ACF field display settings but can not seem to do it…
Sorry
Joe
October 2, 2025, 9:46pm
14
No problem, tnx for your help nonetheless! I always get into these scenarios haha