TAX Project Section
if ( ! function_exists( 'custom_taxonomy_project_section' ) ) {
// Register Custom Taxonomy
function custom_taxonomy_project_section() {
$labels = array(
'name' => _x( 'Project Sections', 'Taxonomy General Name', 'inbox-etc' ),
'singular_name' => _x( 'Project Section', 'Taxonomy Singular Name', 'inbox-etc' ),
'menu_name' => __( 'Project Section', 'inbox-etc' ),
'all_items' => __( 'All Project Sections', 'inbox-etc' ),
'parent_item' => __( 'Parent Project Section', 'inbox-etc' ),
'parent_item_colon' => __( 'Parent Project Section:', 'inbox-etc' ),
'new_item_name' => __( 'New Project Section Name', 'inbox-etc' ),
'add_new_item' => __( 'Add New Project Section', 'inbox-etc' ),
'edit_item' => __( 'Edit Project Section', 'inbox-etc' ),
'update_item' => __( 'Update Project Section', 'inbox-etc' ),
'view_item' => __( 'View Project Section', 'inbox-etc' ),
'separate_items_with_commas' => __( 'Separate project sections with commas', 'inbox-etc' ),
'add_or_remove_items' => __( 'Add or remove project sections', 'inbox-etc' ),
'choose_from_most_used' => __( 'Choose from the most used', 'inbox-etc' ),
'popular_items' => __( 'Popular Project Sections', 'inbox-etc' ),
'search_items' => __( 'Search Project Sections', 'inbox-etc' ),
'not_found' => __( 'Not Found', 'inbox-etc' ),
'no_terms' => __( 'No project sections', 'inbox-etc' ),
'items_list' => __( 'Project Sections list', 'inbox-etc' ),
'items_list_navigation' => __( 'Project Sections list navigation', 'inbox-etc' ),
);
$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( 'project_section', array( 'project' ), $args );
}
add_action( 'init', 'custom_taxonomy_project_section', 0 );
}