Przejdź do treści
WordPress.org

Polska

  • Motywy
  • Wtyczki
  • Aktualności
  • Wsparcie
  • Informacje
  • Pomóż w tłumaczeniu
  • Kontakt
  • Pobierz WordPressa
Pobierz WordPressa
WordPress.org

Plugin Directory

WP Term Colors

  • Prześlij wtyczkę
  • Moje ulubione
  • Zaloguj się
  • Prześlij wtyczkę
  • Moje ulubione
  • Zaloguj się

WP Term Colors

Autor: John James Jacoby
Pobierz
  • Szczegóły
  • Recenzje
  • Instalacja
  • Rozwój
Wsparcie

Opis

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

Zrzuty ekranu

Category Colors
Category Colors

Instalacja

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

Najczęściej zadawane pytania

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/

Recenzje

Doesn’t Work

kshowie 2021-06-19
Doesn't Work

Great

Lindsey 2019-01-09
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_ 2017-10-23
Simple and useful. Working great!

yet another good plugin

mathieu.pellegrin 2017-03-14
Another good and simple plugin that just does the job.

Works well with WP's new termmeta table

David Cavins 2016-09-03 1 odpowiedź
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.
Przeczytaj 5 recenzji

Kontrybutorzy i deweloperzy

„WP Term Colors” jest oprogramowaniem open source. Poniższe osoby miały wkład w rozwój wtyczki.

Zaangażowani
  • John James Jacoby
  • Stuttter

Wtyczka „WP Term Colors” została przetłumaczona na 1 język. Podziękuj tłumaczom za ich wkład.

Przetłumacz wtyczkę “WP Term Colors” na swój język.

Interesuje cię rozwój wtyczki?

Przeglądaj kod, sprawdź repozytorium SVN lub czytaj dziennik rozwoju przez RSS.

Rejestr zmian

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

Meta

  • Wersja 2.0.1
  • Ostatnia aktualizacja 1 miesiąc temu
  • Włączone instalacje 700+
  • Wersja WordPressa 4.4 lub nowszej
  • Testowano do 7.1.4
  • Wersja PHP 5.6.20 lub nowszej
  • Języki

    English (US) i Japanese.

    Przetłumacz na swój język

  • Tagi
    colormetametadatataxonomyterm
  • Widok zaawansowany

Oceny

4.2 na 5 gwiazdek.
  • 4 recenzje 5-gwiazdkowe 5 gwiazdek 4
  • 0 recenzji 4-gwiazdkowych 4 gwiazdki 0
  • 0 recenzji 3-gwiazdkowych 3 gwiazdki 0
  • 0 recenzji 2-gwiazdkowych 2 gwiazdki 0
  • 1 recenzja 1-gwiazdkowa 1 gwiazdka 1

Twoja opinia

Zobacz wszystkierecenzje.

Zaangażowani

  • John James Jacoby
  • Stuttter

Wsparcie

Masz coś do dodania? Potrzebujesz pomocy?

Zobacz forum wsparcia

Złóż datek

Czy chcesz wesprzeć rozwój wtyczki?

Wspomóż wtyczkę

  • O nas
  • Aktualności
  • Hosting
  • Prywatność
  • Prezentacja
  • Motywy
  • Wtyczki
  • Wzorce
  • Nauka
  • Pomoc techniczna
  • Programiści
  • WordPress.tv ↗
  • Zaangażuj się
  • Wydarzenia
  • Przekaż darowiznę ↗
  • Gadżety ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org

Polska

The WordPress® trademark is the intellectual property of the WordPress Foundation.

  • Odwiedź nasze konto X (dawniej Twitter)
  • Odwiedź nasze konto Bluesky
  • Odwiedź nasze konto na Mastodoncie
  • Odwiedź naszego Threadsa
  • Odwiedź naszego Facebooka
  • Odwiedź nasze konto na Instagramie
  • Odwiedź nasze konto na LinkedIn
  • Odwiedź naszego TikToka
  • Odwiedź nasz kanał YouTube
  • Odwiedź naszego Tumblra
Kod to poezja.