Get taxonomy color via RAW color tab

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?

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

Tnx for your response,


thi got me {acf_video_taxonomy_color} but it doesn’t work for some reason :frowning:

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?


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.

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

What do you mean, use the color for the text itself instead of the background?

Yes. just to see if it works

It doesn’t. But the categories of the videos get rendered fine. I just cant change the colors of the text or background.

Videos Archive - eValuatePoker can see them here. They shoulld be in the query loop

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.

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.

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

No problem, tnx for your help nonetheless! I always get into these scenarios haha