Tax Servicio
if ( ! function_exists( 'tax_servicio' ) ) {
// Register Custom Taxonomy
function tax_servicio() {
$labels = array(
'name' => _x( 'Servicios', 'Taxonomy General Name', 'tax_servicio' ),
'singular_name' => _x( 'Servicio', 'Taxonomy Singular Name', 'tax_servicio' ),
'menu_name' => __( 'Servicio', 'tax_servicio' ),
'all_items' => __( 'Todos los Servicios', 'tax_servicio' ),
'parent_item' => __( 'Servicio padre', 'tax_servicio' ),
'parent_item_colon' => __( 'Servicio padre:', 'tax_servicio' ),
'new_item_name' => __( 'New servicio', 'tax_servicio' ),
'add_new_item' => __( 'Añadir nuevo servicio', 'tax_servicio' ),
'edit_item' => __( 'Editar servicio', 'tax_servicio' ),
'update_item' => __( 'Actualizar servicio', 'tax_servicio' ),
'view_item' => __( 'Ver servicio', 'tax_servicio' ),
'separate_items_with_commas' => __( 'Separar servicios con comas', 'tax_servicio' ),
'add_or_remove_items' => __( 'Añadir o remover servicios', 'tax_servicio' ),
'choose_from_most_used' => __( 'Elegir entre los mas usados', 'tax_servicio' ),
'popular_items' => __( 'Servicios populares', 'tax_servicio' ),
'search_items' => __( 'Buscar servicios', 'tax_servicio' ),
'not_found' => __( 'No encontrado', 'tax_servicio' ),
'no_terms' => __( 'Sin servicios', 'tax_servicio' ),
'items_list' => __( 'Lista de servicios', 'tax_servicio' ),
'items_list_navigation' => __( 'Lista de navegación de servicios', 'tax_servicio' ),
);
$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( 'servicio', array( 'portfolio' ), $args );
}
add_action( 'init', 'tax_servicio', 0 );
}