// Register Custom Taxonomy function mt_project_type_tax() { $labels = array( 'name' => _x( 'Tipos de proyecto', 'Taxonomy General Name', 'modern_talking' ), 'singular_name' => _x( 'Tipo de proyecto', 'Taxonomy Singular Name', 'modern_talking' ), 'menu_name' => __( 'Tipo de proyecto', 'modern_talking' ), 'all_items' => __( 'Todos los tipos', 'modern_talking' ), 'parent_item' => __( 'Item padre', 'modern_talking' ), 'parent_item_colon' => __( 'Item padre:', 'modern_talking' ), 'new_item_name' => __( 'Nombre del tipo de proyecto', 'modern_talking' ), 'add_new_item' => __( 'Añadir nuevo', 'modern_talking' ), 'edit_item' => __( 'Editar', 'modern_talking' ), 'update_item' => __( 'Actualizar', 'modern_talking' ), 'view_item' => __( 'Ver item', 'modern_talking' ), 'separate_items_with_commas' => __( 'Separa con comas', 'modern_talking' ), 'add_or_remove_items' => __( 'Añadir o eliminar', 'modern_talking' ), 'choose_from_most_used' => __( 'Elige entre las más usadas', 'modern_talking' ), 'popular_items' => __( 'Items populares', 'modern_talking' ), 'search_items' => __( 'Buscar', 'modern_talking' ), 'not_found' => __( 'Nada encontrado', 'modern_talking' ), 'no_terms' => __( 'Sin items', 'modern_talking' ), 'items_list' => __( 'Lista de items', 'modern_talking' ), 'items_list_navigation' => __( 'Items list navigation', 'modern_talking' ), ); $rewrite = array( 'slug' => 'project-type', '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( 'mt_project_type', array( 'mt_projects' ), $args ); } add_action( 'init', 'mt_project_type_tax', 0 );