Comittees taxonomy
// Register Custom Taxonomy
function register_committees_taxonomy() {
$labels = array(
'name' => _x( 'Committees', 'Taxonomy General Name', 'citypress' ),
'singular_name' => _x( 'Committee', 'Taxonomy Singular Name', 'citypress' ),
'menu_name' => __( 'Committee', 'citypress' ),
'all_items' => __( 'All Committees', 'citypress' ),
'parent_item' => __( 'Parent Committee', 'citypress' ),
'parent_item_colon' => __( 'Parent Committees:', 'citypress' ),
'new_item_name' => __( 'New Committee', 'citypress' ),
'add_new_item' => __( 'Add New Committee', 'citypress' ),
'edit_item' => __( 'Edit Committee', 'citypress' ),
'update_item' => __( 'Update Committee', 'citypress' ),
'separate_items_with_commas' => __( 'Separate committees with commas', 'citypress' ),
'search_items' => __( 'Search Committees', 'citypress' ),
'add_or_remove_items' => __( 'Add or remove committees', 'citypress' ),
'choose_from_most_used' => __( 'Choose from the most used committees', 'citypress' ),
'not_found' => __( 'Committee Not Found', 'citypress' ),
);
$rewrite = array(
'slug' => 'comissoes',
'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' => false,
'rewrite' => $rewrite,
);
register_taxonomy( 'committee', array( 'person' ), $args );
}
// Hook into the 'init' action
add_action( 'init', 'register_committees_taxonomy', 0 );