Перейти к содержимому
  • Войти
  • Регистрация
WordPress.org

Русский

  • Темы
  • Плагины
  • Новости
  • Поддержка
    • Документация
    • Форумы
  • О WordPress
  • Сообщество
  • Скачать WordPress
Скачать WordPress

Плагины

  • Любимые
  • Бета-тестирование
  • Разработчикам

Этот плагин не тестировался с последними 3 основными выпусками WordPress. Скорее всего, он уже не поддерживается и может быть несовместим с текущими версиями WordPress.

Скачать

WP Term Colors

Автор: John James Jacoby
  • Детали
  • Отзывы
  • Установка
  • Разработка
Поддержка

Описание

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

  • WP Chosen
  • WP Pretty Filters
  • WP Event Calendar
  • WP Media Categories
  • WP Term Order
  • WP Term Authors
  • WP Term Colors
  • WP Term Icons
  • WP Term Visibility
  • WP User Activity
  • WP User Avatars
  • WP User Groups
  • WP User Profiles

Скриншоты

  • 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?

Yes. Please install the WP Term Meta plugin.

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://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/

Отзывы

Doesn’t Work

kshowie 19.06.2021
Doesn't Work

Great

Lindsey 09.01.2019
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') }};

Works!

acrashik_ 23.10.2017
Simple and useful. Working great!

yet another good plugin

mathieu.pellegrin 14.03.2017
Another good and simple plugin that just does the job.

Works well with WP's new termmeta table

David Cavins 03.09.2016 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 отзывов

Участники и разработчики

«WP Term Colors» — проект с открытым исходным кодом. В развитие плагина внесли свой вклад следующие участники:

Участники
  • John James Jacoby
  • Stuttter

Перевести «WP Term Colors» на ваш язык.

Заинтересованы в разработке?

Посмотрите код, проверьте SVN репозиторий, или подпишитесь на журнал разработки по RSS.

Журнал изменений

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

  • Первый релиз

Мета

  • Версия: 0.1.4
  • Обновление: 7 лет назад
  • Активных установок: 1 000+
  • Версия WordPress: 4.4 или выше
  • Совместим вплоть до: 4.4.29
  • Язык:
    English (US)
  • Метки:
    colormetametadatataxonomyterm
  • Дополнительно

Оценки

Посмотреть все
  • 5 звёзд 4
  • 4 звезды 0
  • 3 звезды 0
  • 2 звезды 0
  • 1 звезда 1
Войдите, чтобы оставить отзыв.

Участники

  • John James Jacoby
  • Stuttter

Поддержка

Решено проблем за последние 2 месяца:

0 из 1

Перейти в форум поддержки

Пожертвование

Would you like to support the advancement of this plugin?

Пожертвовать на развитие плагина

  • О нас
  • Новости
  • Хостинг
  • Поддержать
  • Сувениры
  • Документация
  • Разработчики
  • Присоединиться
  • Обучение
  • Витрина
  • Плагины
  • Темы
  • Паттерны
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Приватность
  • Открытый код
WordPress.org
WordPress.org

Русский

  • Посетите нашу страницу на Facebook
  • Посетите нашу ленту в Twitter
  • Посетите наш Instagram
  • Посетите нашу страницу в LinkedIn
Код — это поэзия.