The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 8 years, 3 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
I am trying to:
We got a custom post type called Innovations. That post type uses a taxonomy called "Sectors." There are 12 sectors.
When displaying the different innovations in the page below, we would like to have the 12 sectors show a unique color on each post. So that is, each of the 12 sectors has their own color.
You see each post is displayed with it's sector name in text. But where the yellow dot is, the unique color for that sector should be shown.
How can we do this? How can each sector be assigned with a unique color?
I visited this URL: hidden link
(as of writing, the hosting company has some DB problems... )
Our Types plugin has the ability to add custom fields to taxonomy terms. So what you can do is to add a custom field for color and then you can add the hexcode for that color there.
On the Frontend you can just retrieve the color.
What kind of view are you listing out the items in. Is it a taxonomy view or a Post view.
Okey, I see. Hm, so which one of these would I use or that? Post Fields, User Fields or Term Fields. And I guess you don't mean like using the colorpicker function as field?
What I have tried now is using Term Fields and created a field with online line text. I assigned this to the taxonomy "Sector". I now see this field when editing the Sector tax'es. hidden link
I have then added this field to the output in "Templates for this View": hidden link
But I don't get any output when looking at the frontend code.