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