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