Essentially your issue is that you have extra data specific to the term and WP doesn’t natively store such data.
On top of my head the low hanging ways to make it would be:
- Maintain the list of schools/colors and whenever school term is assigned automatically assign respective colors by code.
- Create term metadata tables (which would work via regular Metadata API, just not provided natively, there are plugins that take care of setup) and store information about colors as meta information in school terms, retrieving as necessary.
However if this is just one case of many similar requirements, you may want to implement schools as custom post types and add post relationships implementation to handle connections. Taxonomies are by nature grouping mechanism and aren’t engineered to be data–heavy.
Related Posts:
- Remove taxonomy base or term from url
- Bulk term assignment for attachment taxonomies
- Why is my working Custom Taxonomy not in get_taxonomies array?
- Custom taxonomy listing page when no term set (all terms)
- Custom order of terms for custom taxonomy in admin and website
- RSS Feed for posts containing any term from a taxonomy
- Taxonomy slug by term ID
- How to enable hierarchical permalinks for hierarchical taxonomies
- Exclude Child Term Posts from Parent Term Archive
- Create taxonomy with meta term using the WP Rest Api
- Use custom posts as taxonomy term meta replacement?
- Best practices for complex taxonomies
- wp_get_object_terms – How can I order the resulting array by hierarchy?
- Remove description in custom taxonomy edit screen
- Taxonomies not appearing in columns on dashboard
- How to output the taxonomy term name in a widget
- Make Custom Taxonomy Category Use Parent Template
- Custom taxonomy template not working
- How to call custom taxonomy categories with shortcodes
- How to get terms of a custom post type in a loop inside footer.php
- List only first-level children of specific custom taxonomy term
- Is It Possible To Have Shared WordPress Custom Post Types?
- get / list categories and counts filtered by custom taxonomy term
- How do I make a custom taxomony appear like tags?
- Refine user taxonomy query based on role
- Get ID and slug from taxonomy object
- List the number of posts for each custom taxonomy and specific custom field value
- How can I conditionally change the title of a taxonomy meta box?
- Recreating the hierarchy of taxonomies for a dropdown form menu?
- meta_key & meta_value not working with get_pages and custom taxonomy
- showing custom taxonomies w/custom post type
- Display sub categories and their data of a taxonomy
- Exclude Taxonomy Terms from Template Via Back End?
- How to overwrite registered taxonomy url from vendor plugin in child theme
- Dynamic loading of Archive content based on custom taxonomy term name
- Pull in taxonomy links using get_the_terms?
- Adding content to a taxonomy metabox
- Getting values of a custom taxonomy dropdown
- Howto control custum taxonomy order?
- I am trying to display information from a custom table from my wordpress users pages
- Save custom taxonomy data in different table not in wp_options for my own plugin
- Retrieve Custom Taxonomies according to posts selected
- How does WordPress Parent-Child Taxonomy actually Works?
- Custom taxonomy archive shows 404 error
- Different single page templates for taxonomies
- Can I use OR relation for one item when calling tax_query from WP_Query and use AND for the rest?
- get_terms not returning any custom taxonomies
- I don’t need ‘view’ page for my custom taxonomy
- WordPress implode & wp_insert_post question
- If Custom Taxonomy
- Use the same taxonomy twice on the same post type?
- How to write sql query to get the posts from a custom taxonomy term name
- How to do a particular wp_query taxonomy search
- How to display a custom taxonomy without a link?
- Get post count for current custom taxonomy
- Build filter for post-type + multi taxonomies + multi terms
- get_term_by works but get_terms doesn’t?
- How to get product order by two custom taxonomy in wordpress
- How can i add custom field inside custom post taxonomy?
- Custom Taxonomy Not Saving in Front End Post
- Fix Custom Taxonomy Display two times on each call
- Update Custom Taxonomy Value for a post based on custom date field
- How to output taxonomy term (incl. link to archive) on author.php?
- Featured Images for Tags?
- Taxonomize taxonomy terms?
- displaying posts from a custom post type tags
- Showing relevant categories on custom taxonomy template
- Creating a drop-down and filter button for two custom taxonomies assigned to a custom post type
- Taxonomy page loading wrong data
- How to use custom slug and custom templates for custom taxonomy?
- Conditional if is single and part of the custom taxonomy
- how to show product custom taxonomies in woocommerce rest api
- Auto add custom taxonomy to permalink when save
- Custom taxonomy – no posts found
- WP Tax query & order by tax query not working
- Show latest used taxonomy in homepage
- Link a page from admin to a custom taxonomy
- What’s the url queryvar for a taxnomy archive?
- set_object_terms for custom taxonomy in custom post type – not working
- List active taxonomy terms
- Permalink Rewrite to include Custom Taxonomy Term
- Where is defined a custom register_taxonomy? [closed]
- Differentiate Parent & Child of Custom Taxonomy
- Listing all selected terms for custom taxonomies on a post
- Multiple Taxonomy in URL/Query – No Custom Post Type
- Calling Custom Taxonomy Dropdown in Form
- Displaying Custom Taxonomy List Posts By Slug?
- Show different sidebar on taxonomy pages when a default is set
- Taxonomy Extra Meta [duplicate]
- How can I get parent term from a child term
- Custom Taxonomy – Archive for the whole Custom Taxonomy (and not just single term)?
- get_terms() – unexpected ‘=>’ (T_DOUBLE_ARROW) error
- ACF Display Taxonomy Image Field
- Guest author – URL, base and custom taxonomy – working but unstable
- Search and filter with custom field in taxonomy
- is_tax not working for custom taxonomy
- Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)
- wp_add_object_terms cant recognize a post ID
- Foreach for get_the_terms for hierarchical taxonomy don’t repeat Top Level Terms if contains multiple Second Level Terms
- Gravity Forms with Advanced Post Creation Add-On not updating ACF fields on custom taxonomy