WordPress.org

Français

  • Thèmes
  • Extensions
  • Actualités
    • Documentation
    • Forums
  • À propos
  • Compositions
    • Équipes
    • Guide de contribution
  • Obtenir WordPress
Obtenir WordPress
WordPress.org

Plugin Directory

WP Term Colors

  • Envoyer une extension
  • Mes favoris
  • Se connecter
  • Envoyer une extension
  • Mes favoris
  • Se connecter

Cette extension n’a pas été testée avec plus de trois mises à jour majeures de WordPress. Elle peut ne plus être maintenue ou supportée et peut avoir des problèmes de compatibilité lorsqu’elle est utilisée avec des versions de WordPress plus récentes.

WP Term Colors

Par John James Jacoby
Télécharger
  • Détails
  • Avis
  • Installation
  • Développement
Support

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

  • 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

Captures d’écrans

  • Category Colors

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

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'
    ) )
) );
Où puis-je obtenir de l’aide ?

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

Où puis-je trouver la documentation ?

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

Avis

Doesn’t Work

kshowie 19 juin 2021
Doesn’t Work

Great

Lindsey 9 janvier 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 octobre 2017
Simple and useful. Working great!

yet another good plugin

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

Works well with WP's new termmeta table

David Cavins 3 septembre 2016 1 réponse
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.
Lire les 5 avis

Contributeurs/contributrices & développeurs/développeuses

« WP Term Colors » est un logiciel libre. Les personnes suivantes ont contribué à cette extension.

Contributeurs
  • John James Jacoby
  • Stuttter

Traduisez « WP Term Colors » dans votre langue.

Le développement vous intéresse ?

Parcourir le code, consulter le SVN dépôt, ou s’inscrire au journal de développement par RSS.

Journal des modifications

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

  • Version initiale

Méta

  • Version 0.1.4
  • Dernière mise à jour il y a 10 ans
  • Installations actives 800+
  • Version de WordPress 4.4 ou plus
  • Testé jusqu’à 4.4.34
  • Langue
    English (US)
  • Étiquettes
    colormetametadatataxonomyterm
  • Vue avancée

Évaluations

4.2 sur 5 étoiles.
  • 4 avis à 5 étoiles 5 étoiles 4
  • 0 avis à 4 étoile 4 étoiles 0
  • 0 avis à 3 étoile 3 étoiles 0
  • 0 avis à 2 étoile 2 étoiles 0
  • 1 avis à 1 étoile 1 étoile 1

Ajouter mon avis

Voir tous les avis

Contributeurs

  • John James Jacoby
  • Stuttter

Support

Quelque chose à dire ? Besoin d’aide ?

Voir le forum de support

Faire un don

Souhaitez-vous soutenir l’avancement de cette extension ?

Faire un don à cette extension

  • À propos
  • Actualités
  • Hébergement
  • Confidentialité
  • Vitrine
  • Thèmes
  • Extensions
  • Compositions
  • Apprendre
  • Support
  • Développeurs & développeuses
  • WordPress.tv ↗
  • Contribuer
  • Évènements
  • Faire un don ↗
  • « Five For the Future »
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

Français

  • Visitez notre compte X (précédemment Twitter)
  • Visiter notre compte Bluesky
  • Visiter notre compte Mastodon
  • Visiter notre compte Threads
  • Consulter notre compte Facebook
  • Consulter notre compte Instagram
  • Consulter notre compte LinkedIn
  • Visiter notre compte TokTok
  • Visiter notre chaîne YouTube
  • Visiter notre compte Tumblr
Le code est une poésie.