if ( ! function_exists( 'tmm_services_taxonomy' ) ) { // Register Custom Taxonomy function tmm_services_taxonomy() { $labels = array( 'name' => _x( 'Services', 'Taxonomy General Name', 'tmm' ), 'singular_name' => _x( 'Service', 'Taxonomy Singular Name', 'tmm' ), 'menu_name' => __( 'Services', 'tmm' ), 'all_items' => __( 'All Services', 'tmm' ), 'parent_item' => __( 'Parent Service', 'tmm' ), 'parent_item_colon' => __( 'Parent Service:', 'tmm' ), 'new_item_name' => __( 'New Service', 'tmm' ), 'add_new_item' => __( 'Add New Service', 'tmm' ), 'edit_item' => __( 'Edit Service', 'tmm' ), 'update_item' => __( 'Update Service', 'tmm' ), 'view_item' => __( 'View Service', 'tmm' ), 'separate_items_with_commas' => __( 'Separate items with commas', 'tmm' ), 'add_or_remove_items' => __( 'Add or remove items', 'tmm' ), 'choose_from_most_used' => __( 'Choose from the most used', 'tmm' ), 'popular_items' => __( 'Popular Services', 'tmm' ), 'search_items' => __( 'Search Service', 'tmm' ), 'not_found' => __( 'Not Found', 'tmm' ), 'no_terms' => __( 'No items', 'tmm' ), 'items_list' => __( 'Items list', 'tmm' ), 'items_list_navigation' => __( 'Items list navigation', 'tmm' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, ); register_taxonomy( 'Services', array( 'Projects' ), $args ); } add_action( 'init', 'tmm_services_taxonomy', 0 ); }