MountainMadness Guide Taxonomy
// Register Custom Taxonomy
function guide_taxonomy() {
$labels = array(
'name' => 'Guides',
'singular_name' => 'Guide',
'menu_name' => 'Guides',
'all_items' => 'All Guides',
'parent_item' => 'Parent Guide',
'parent_item_colon' => 'Parent Guide:',
'new_item_name' => 'New Guide Name',
'add_new_item' => 'Add New Guide',
'edit_item' => 'Edit Guide',
'update_item' => 'Update Guide',
'view_item' => 'View Guide',
'separate_items_with_commas' => 'Separate Guides with commas',
'add_or_remove_items' => 'Add or remove Guides',
'choose_from_most_used' => 'Choose from the most used',
'popular_items' => 'Popular Guides',
'search_items' => 'Search Guides',
'not_found' => 'Not Found',
'no_terms' => 'No Guides',
'items_list' => 'Guides list',
'items_list_navigation' => 'Guides list navigation',
);
$capabilities = array(
'manage_terms' => 'manage_guides',
'edit_terms' => 'manage_guides',
'delete_terms' => 'manage_guides',
'assign_terms' => 'edit_guides',
);
$args = array(
'labels' => $labels,
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => false,
'capabilities' => $capabilities,
);
register_taxonomy( 'guide', array( 'hike' ), $args );
}
add_action( 'init', 'guide_taxonomy', 0 );