Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

taxonomy categoria

// Register Custom Taxonomy
function custom_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Tipos de negocios', 'Taxonomy General Name', 'theme' ),
		'singular_name'              => _x( 'Tipo de negocio', 'Taxonomy Singular Name', 'theme' ),
		'menu_name'                  => __( 'Tipos de negocio', 'theme' ),
		'all_items'                  => __( 'Todos los tipos', 'theme' ),
		'parent_item'                => __( 'Padre', 'theme' ),
		'parent_item_colon'          => __( 'Padre', 'theme' ),
		'new_item_name'              => __( 'Añadir nuevo', 'theme' ),
		'add_new_item'               => __( 'Añadir nuevo', 'theme' ),
		'edit_item'                  => __( 'Editar', 'theme' ),
		'update_item'                => __( 'Actualizar', 'theme' ),
		'separate_items_with_commas' => __( 'Seprados por comas', 'theme' ),
		'search_items'               => __( 'Buscar', 'theme' ),
		'add_or_remove_items'        => __( 'Añadir o eliminar', 'theme' ),
		'choose_from_most_used'      => __( 'Elige', 'theme' ),
		'not_found'                  => __( 'No encontrado', 'theme' ),
	);
	$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( 'categoria', array( 'negocio' ), $args );

}

// Hook into the 'init' action
add_action( 'init', 'custom_taxonomy', 0 );