Custom color for each category name
To achieve this Follow these easy step: Add field for color To Add/Edit category Screen using hooks category_add_form_fields and category_edit_form_fields add_action(‘category_add_form_fields’, ‘my_category_fields’, 10, 2); add_action(‘category_edit_form_fields’, ‘my_category_fields’, 10, 2); function my_category_fields($term) { $cat_color = get_term_meta($term->term_id, ‘cat_color’, true); if($cat_color == ”) $cat_color=”#000000″; // Default black color ?> <tr class=”form-field”> <th valign=”top” scope=”row”><label for=”cat_color”><?php _e(‘Color code’); ?></label></th> <td> … Read more