WP Term Colors
WP Term Colors
Description
Pretty colors for categories, tags, and other taxonomy terms
WP Term Colors allows users to assign colors to any visible category, tag, or taxonomy term using a fancy color picker, providing a customized look for their taxonomies.
Dependencies
This plugin requires WP Term Meta
Also checkout
Installation
- Download and install using the built in WordPress plugin installer.
- Activate in the “Plugins” area of your admin by clicking the “Activate” link.
- No further setup or configuration is necessary.
Faq
Yes. Please install the WP Term Meta plugin.
No. There are no new database tables with this plugin.
No. All of WordPress’s core database tables remain untouched.
With WordPress’s get_terms() function, the same as usual, but with an additional meta_query argument according the WP_Meta_Query specification:
https://codex.wordpress.org/Class_Reference/WP_Meta_Query
$terms = get_terms( 'category', array(
'depth' => 1,
'number' => 100,
'parent' => 0,
'hide_empty' => false,
// Query by color
'meta_query' => array( array(
'key' => 'color',
'value' => '#c0ffee'
) )
) );
The WordPress support forums: https://wordpress.org/support/plugin/wp-term-colors/
http://github.com/stuttter/wp-term-colors/
Reviews
Doesn't Work
By kshowie on June 19, 2021
Great
By Lindsey (lalindsey) on January 9, 2019
{{ term.meta('color') }};Works!
By acrashik_ on October 23, 2017
yet another good plugin
By mathieu.pellegrin on March 14, 2017
Works well with WP's new termmeta table
By David Cavins (dcavins) on September 3, 2016
I needed to save colors for terms, and found that @jjj had already done the work. Accessing the saved colors is pretty straightforward using the new (WP 4.4 or newer) built-in utility function:
$color = get_term_meta( $term_id, 'color', true );
The terms are saved in hex format (#eeee22) so are ready to use once retrieved.
Thanks @jjj.
Changelog
0.2.0
- Update base class
0.1.4
- Update textdomain
- Update headers & meta
0.1.3
- Updated metadata UI class
0.1.1
- Updated form field classes
0.1.0
- Initial release
