WDP Dance Types
// Register Custom Taxonomy
function dance_type_tax() {
$labels = array(
'name' => _x( 'Dance Types', 'Taxonomy General Name', 'wdp' ),
'singular_name' => _x( 'Dance Type', 'Taxonomy Singular Name', 'wdp' ),
'menu_name' => __( 'Dance Type', 'wdp' ),
'all_items' => __( 'All Dance Types', 'wdp' ),
'parent_item' => __( 'Parent Dance Type', 'wdp' ),
'parent_item_colon' => __( 'Parent Dance Type:', 'wdp' ),
'new_item_name' => __( 'New Dance Type Name', 'wdp' ),
'add_new_item' => __( 'Add New Dance Type', 'wdp' ),
'edit_item' => __( 'Edit Dance Type', 'wdp' ),
'update_item' => __( 'Update Dance Type', 'wdp' ),
'separate_items_with_commas' => __( 'Separate dance types with commas', 'wdp' ),
'search_items' => __( 'Search Dance Types', 'wdp' ),
'add_or_remove_items' => __( 'Add or remove dance types', 'wdp' ),
'choose_from_most_used' => __( 'Choose from the most used dance types', 'wdp' ),
'not_found' => __( 'Not Found', 'wdp' ),
);
$args = array(
'labels' => $labels,
'hierarchical' => true,
'public' => true,
'show_ui' => true,
'show_admin_column' => true,
'show_in_nav_menus' => true,
'show_tagcloud' => true,
);
register_taxonomy( 'dance_type', array( 'post', 'page', 'profile', 'event' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'dance_type_tax', 0 );