Skip to content

Instantly share code, notes, and snippets.

@billerickson billerickson/taxonomy.php Secret
Last active Nov 16, 2018

Embed
What would you like to do?
<?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
You can’t perform that action at this time.