Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

tax_servicios

tax_servicios

// Register Custom Taxonomy
function tax_servicios() {

	$labels = array(
		'name'                       => _x( 'tax_servicios', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'tax_servicio', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'tax_servicios', 'text_domain' ),
		'all_items'                  => __( 'Todos los artículos', 'text_domain' ),
		'parent_item'                => __( 'Artículo principal', 'text_domain' ),
		'parent_item_colon'          => __( 'Elemento principal:', 'text_domain' ),
		'new_item_name'              => __( 'Nombre del nuevo elemento', 'text_domain' ),
		'add_new_item'               => __( 'Agregar ítem nuevo', 'text_domain' ),
		'edit_item'                  => __( 'Editar artículo', 'text_domain' ),
		'update_item'                => __( 'Actualizar elemento', 'text_domain' ),
		'view_item'                  => __( 'Ver ítem', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separar elementos con comas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Agregar o quitar elementos', 'text_domain' ),
		'choose_from_most_used'      => __( 'Elija entre los más usados', 'text_domain' ),
		'popular_items'              => __( 'Artículos populares', 'text_domain' ),
		'search_items'               => __( 'Buscar elementos', 'text_domain' ),
		'not_found'                  => __( 'Extraviado', 'text_domain' ),
		'no_terms'                   => __( 'No hay artículos', 'text_domain' ),
		'items_list'                 => __( 'lista de elementos', 'text_domain' ),
		'items_list_navigation'      => __( 'Navegación de la lista de elementos', 'text_domain' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => true,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'tax_servicios', array( 'servicios' ), $args );

}
add_action( 'init', 'tax_servicios', 0 );