Craft Beer Families Taxonomy
// Register Custom Taxonomy
function craftbeer_family() {
$labels = array(
'name' => 'Beer Families',
'singular_name' => 'Beer Family',
'menu_name' => 'Beer Families',
'all_items' => 'All Families',
'parent_item' => 'Parent Family',
'parent_item_colon' => 'Parent Family:',
'new_item_name' => 'New Family Name',
'add_new_item' => 'Add New Family',
'edit_item' => 'Edit Family',
'update_item' => 'Update Family',
'separate_items_with_commas' => 'Separate items with commas',
'search_items' => 'Search Families',
'add_or_remove_items' => 'Add or remove family',
'choose_from_most_used' => 'Choose from the most used families',
'not_found' => 'No Familiy Found',
);
$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( 'family', array( 'craftbeers' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'craftbeer_family', 0 );