-
-
Save billerickson/5a445e78b06081fc80918c957a589018 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$labels = array( | |
'name' => 'Color', | |
'singular_name' => 'Color', | |
'search_items' => 'Search Colors', | |
'popular_items' => 'Popular Colors', | |
'all_items' => 'All Colors', | |
'parent_item' => 'Parent Color', | |
'parent_item_colon' => 'Parent Color:', | |
'edit_item' => 'Edit Color', | |
'update_item' => 'Update Color', | |
'add_new_item' => 'Add New Color', | |
'new_item_name' => 'New Color', | |
'separate_items_with_commas' => 'Separate Colors with commas', | |
'add_or_remove_items' => 'Add or remove Colors', | |
'choose_from_most_used' => 'Choose from most used Colors', | |
'menu_name' => 'Colors', | |
); | |
$args = array( | |
'labels' => $labels, | |
'public' => true, | |
'show_in_nav_menus' => true, | |
'show_ui' => true, | |
'show_tagcloud' => false, | |
'hierarchical' => false, | |
'rewrite' => array( 'slug' => 'color', 'with_front' => false ), | |
'query_var' => true, | |
'show_admin_column' => false, | |
// 'meta_box_cb' => false, | |
); | |
register_taxonomy( 'color', array( 'post' ), $args ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment