Scarselli_color_taxonomy
// Register Custom Taxonomy
function color_taxonomy() {
$labels = array(
'name' => _x( 'Colors', 'Taxonomy General Name', 'scarselli' ),
'singular_name' => _x( 'Color', 'Taxonomy Singular Name', 'scarselli' ),
'menu_name' => __( 'Colors', 'scarselli' ),
'all_items' => __( 'All Colors', 'scarselli' ),
'parent_item' => __( 'Parent Item', 'scarselli' ),
'parent_item_colon' => __( 'Parent Item:', 'scarselli' ),
'new_item_name' => __( 'New Color name', 'scarselli' ),
'add_new_item' => __( 'Add New Color', 'scarselli' ),
'edit_item' => __( 'Edit Color', 'scarselli' ),
'update_item' => __( 'Update Color', 'scarselli' ),
'view_item' => __( 'View Color', 'scarselli' ),
'separate_items_with_commas' => __( 'Separate items with commas', 'scarselli' ),
'add_or_remove_items' => __( 'Add or remove items', 'scarselli' ),
'choose_from_most_used' => __( 'Choose from the most used', 'scarselli' ),
'popular_items' => __( 'Popular Items', 'scarselli' ),
'search_items' => __( 'Search Items', 'scarselli' ),
'not_found' => __( 'Not Found', 'scarselli' ),
'no_terms' => __( 'No items', 'scarselli' ),
'items_list' => __( 'Items list', 'scarselli' ),
'items_list_navigation' => __( 'Items list navigation', 'scarselli' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'color', array( 'diamonds', ' jewerly' ), $args );
}
add_action( 'init', 'color_taxonomy', 0 );