Training Types
Used with Learning Library custom post type
if ( ! function_exists( 'Training_Type' ) ) { // Register Custom Taxonomy function Training_Type() { $labels = array( 'name' => _x( 'Training Types', 'Taxonomy General Name', 'o2dca_select' ), 'singular_name' => _x( 'Training Type', 'Taxonomy Singular Name', 'o2dca_select' ), 'menu_name' => __( 'Training Type', 'o2dca_select' ), 'all_items' => __( 'All Training Types', 'o2dca_select' ), 'parent_item' => __( 'Parent Training Type', 'o2dca_select' ), 'parent_item_colon' => __( 'Parent Training Type:', 'o2dca_select' ), 'new_item_name' => __( 'New Training Type Name', 'o2dca_select' ), 'add_new_item' => __( 'Add New Training Type', 'o2dca_select' ), 'edit_item' => __( 'Edit Training Type', 'o2dca_select' ), 'update_item' => __( 'Update Training Type', 'o2dca_select' ), 'view_item' => __( 'View Training Type', 'o2dca_select' ), 'separate_items_with_commas' => __( 'Separate training types with commas', 'o2dca_select' ), 'add_or_remove_items' => __( 'Add or remove training types', 'o2dca_select' ), 'choose_from_most_used' => __( 'Choose from the most used', 'o2dca_select' ), 'popular_items' => __( 'Popular Training Types', 'o2dca_select' ), 'search_items' => __( 'Search Training Types', 'o2dca_select' ), 'not_found' => __( 'Not Found', 'o2dca_select' ), 'no_terms' => __( 'No training types', 'o2dca_select' ), 'items_list' => __( 'Training Types list', 'o2dca_select' ), 'items_list_navigation' => __( 'Training Types list navigation', 'o2dca_select' ), ); $args = array( 'labels' => $labels, 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => false, 'show_tagcloud' => false, ); register_taxonomy( 'training-type', array( 'learning_library' ), $args ); } add_action( 'init', 'Training_Type', 0 ); }