Regional Chapter Tax
if ( ! function_exists( 'custom_taxonomy_chapter' ) ) {
// Register Custom Taxonomy
function custom_taxonomy_chapter() {
$labels = array(
'name' => _x( 'Chapters', 'Taxonomy General Name', 'ssm' ),
'singular_name' => _x( 'Chapter', 'Taxonomy Singular Name', 'ssm' ),
'menu_name' => __( 'Chapter', 'ssm' ),
'all_items' => __( 'All Chapters', 'ssm' ),
'parent_item' => __( 'Parent Chapter', 'ssm' ),
'parent_item_colon' => __( 'Parent Chapter:', 'ssm' ),
'new_item_name' => __( 'New Chapter Name', 'ssm' ),
'add_new_item' => __( 'Add New Chapter', 'ssm' ),
'edit_item' => __( 'Edit Chapter', 'ssm' ),
'update_item' => __( 'Update Chapter', 'ssm' ),
'view_item' => __( 'View Chapter', 'ssm' ),
'separate_items_with_commas' => __( 'Separate Chapters with commas', 'ssm' ),
'add_or_remove_items' => __( 'Add or remove Chapters', 'ssm' ),
'choose_from_most_used' => __( 'Choose from the most used', 'ssm' ),
'popular_items' => __( 'Popular Chapters', 'ssm' ),
'search_items' => __( 'Search Chapters', 'ssm' ),
'not_found' => __( 'Not Found', 'ssm' ),
);
$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( 'chapter', array( 'regional_chapters' ), $args );
}
add_action( 'init', 'custom_taxonomy_chapter', 0 );
}