Title: WP Term Colors
Author: John James Jacoby
Published: <strong>2015 年 8 月 24 日</strong>
Last modified: 2026 年 10 月 12 日

---

搜索插件

![](https://ps.w.org/wp-term-colors/assets/banner-772x250.png?rev=3738629)

![](https://ps.w.org/wp-term-colors/assets/icon-256x256.png?rev=3738629)

# WP Term Colors

 作者：[John James Jacoby](https://profiles.wordpress.org/johnjamesjacoby/)

[下载](https://downloads.wordpress.org/plugin/wp-term-colors.2.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/wp-term-colors/#description)
 * [评价](https://cn.wordpress.org/plugins/wp-term-colors/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wp-term-colors/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wp-term-colors/#developers)

 [支持](https://wordpress.org/support/plugin/wp-term-colors/)

## 描述

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.

#### Also checkout

 * [WP Chosen](https://wordpress.org/plugins/wp-chosen/)
 * [WP Pretty Filters](https://wordpress.org/plugins/wp-pretty-filters/)
 * [WP Event Calendar](https://wordpress.org/plugins/wp-event-calendar/)
 * [WP Media Categories](https://wordpress.org/plugins/wp-media-categories/)
 * [WP Term Order](https://wordpress.org/plugins/wp-term-order/)
 * [WP Term Authors](https://wordpress.org/plugins/wp-term-authors/)
 * [WP Term Colors](https://wordpress.org/plugins/wp-term-colors/)
 * [WP Term Icons](https://wordpress.org/plugins/wp-term-icons/)
 * [WP Term Visibility](https://wordpress.org/plugins/wp-term-visibility/)
 * [WP User Activity](https://wordpress.org/plugins/wp-user-activity/)
 * [WP User Avatars](https://wordpress.org/plugins/wp-user-avatars/)
 * [WP User Groups](https://wordpress.org/plugins/wp-user-groups/)
 * [WP User Profiles](https://wordpress.org/plugins/wp-user-profiles/)

## 屏幕截图

[⌊Category Colors⌉⌊Category Colors⌉[

Category Colors

## 安装

 * 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.

## 常见问题

### Does this plugin depend on any others?

No. Not since WordPress 4.4.

### Does this create new database tables?

No. There are no new database tables with this plugin.

### Does this modify existing database tables?

No. All of WordPress’s core database tables remain untouched.

### How do I query for terms via their colors?

With WordPress’s `get_terms()` function, the same as usual, but with an additional`
meta_query` argument according the `WP_Meta_Query` specification:
 https://developer.
wordpress.org/reference/classes/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'
        ) )
    ) );
    ```

### Where can I get support?

The WordPress support forums: https://wordpress.org/support/plugin/wp-term-colors/

### Where can I find documentation?

https://github.com/stuttter/wp-term-colors/

## 评价

![](https://secure.gravatar.com/avatar/ee6fc6f1e8c5d0f3cff2a482b73f530691a93d2168d52f140accd2e1d00fb30b?
s=60&d=retro&r=g)

### 󠀁[Doesn’t Work](https://wordpress.org/support/topic/doesnt-work-2681/)󠁿

 [kshowie](https://profiles.wordpress.org/kshowie/) 2021 年 6 月 19 日

Doesn't Work

![](https://secure.gravatar.com/avatar/b60f10c36dca664fde3238d5bc76b89e49cabf2cd39d9ed0ad5f4646a3469661?
s=60&d=retro&r=g)

### 󠀁[Great](https://wordpress.org/support/topic/great-9069/)󠁿

 [Lindsey](https://profiles.wordpress.org/lalindsey/) 2019 年 1 月 9 日

This plugin still work great. I use it all the time as it's an easy to add option
for client's when they need to color code taxonomies. It even works great with Timber
themes. You can easily add it to your templates in PHP using David Cavins' example.
If you are using a theme that is utilizing twig/Timber, you can grab the color in
your for loop as easy as: {{ term.meta('color') }};

![](https://secure.gravatar.com/avatar/2a5d64ec545aee69b1e30f2d6178b787fb2a7792bc9b00f5c09ba3ad3ecd1851?
s=60&d=retro&r=g)

### 󠀁[Works!](https://wordpress.org/support/topic/works-1343/)󠁿

 [acrashik_](https://profiles.wordpress.org/acrashik_/) 2017 年 10 月 23 日

Simple and useful. Working great!

![](https://secure.gravatar.com/avatar/2cc402b26dc4e52ca8883ca76e89cb8d12d15a28c731630798a6a56ef50ad416?
s=60&d=retro&r=g)

### 󠀁[yet another good plugin](https://wordpress.org/support/topic/yet-another-good-plugin/)󠁿

 [mathieu.pellegrin](https://profiles.wordpress.org/mathieupellegrin/) 2017 年 3
月 14 日

Another good and simple plugin that just does the job.

![](https://secure.gravatar.com/avatar/ef99b3560e0934163d2d63fc987e099498504c24bae5404a2c6dac6d8a814e0a?
s=60&d=retro&r=g)

### 󠀁[Works well with WP's new termmeta table](https://wordpress.org/support/topic/works-well-with-wps-new-termmeta-table/)󠁿

 [David Cavins](https://profiles.wordpress.org/dcavins/) 2016 年 9 月 3 日 1 回复

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.

 [ 阅读所有5条评价 ](https://wordpress.org/support/plugin/wp-term-colors/reviews/)

## 贡献者及开发者

「WP Term Colors」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ John James Jacoby ](https://profiles.wordpress.org/johnjamesjacoby/)
 *   [ Stuttter ](https://profiles.wordpress.org/stuttter/)

「WP Term Colors」插件已被翻译至 1 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/wp-term-colors/contributors)
为本插件所做的贡献。

[帮助将「WP Term Colors」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wp-term-colors)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wp-term-colors/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wp-term-colors/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wp-term-colors/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wp-term-colors/)。

## 更新日志

#### 2.0.1

 * Load installed plugin language packs before translated labels are initialized

#### 2.0.0

 * Remove the WP Term Meta dependency by using term metadata built into WordPress
   4.4 and newer
 * Initialize after custom taxonomies are registered
 * Add color-picker styling and improve quick-edit behavior
 * Keep uncolored terms visible when sorting the term list by color
 * Preserve metadata callback compatibility with WordPress 4.4

#### 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

## 额外信息

 *  版本 **2.0.1**
 *  最后更新：**5 天前**
 *  活跃安装数量 **700+**
 *  WordPress 版本 ** 4.4 或更高版本 **
 *  已测试的最高版本为 **7.1.3**
 *  PHP 版本 ** 5.6.20 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wp-term-colors/) 和 [Japanese](https://ja.wordpress.org/plugins/wp-term-colors/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/wp-term-colors)
 * 标签
 * [color](https://cn.wordpress.org/plugins/tags/color/)[meta](https://cn.wordpress.org/plugins/tags/meta/)
   [metadata](https://cn.wordpress.org/plugins/tags/metadata/)[taxonomy](https://cn.wordpress.org/plugins/tags/taxonomy/)
   [term](https://cn.wordpress.org/plugins/tags/term/)
 *  [高级视图](https://cn.wordpress.org/plugins/wp-term-colors/advanced/)

## 评级

 4.2 星（最高 5 星）。

 *  [  4 条 5 星评价     ](https://wordpress.org/support/plugin/wp-term-colors/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/wp-term-colors/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/wp-term-colors/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/wp-term-colors/reviews/?filter=2)
 *  [  1 条 1 星评价     ](https://wordpress.org/support/plugin/wp-term-colors/reviews/?filter=1)

[您的评价](https://wordpress.org/support/plugin/wp-term-colors/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wp-term-colors/reviews/)

## 贡献者

 *   [ John James Jacoby ](https://profiles.wordpress.org/johnjamesjacoby/)
 *   [ Stuttter ](https://profiles.wordpress.org/stuttter/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wp-term-colors/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://ko-fi.com/jjj)