Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Encuentros sexuales

// Register Custom Taxonomy
function tipos_encuentros_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Taxonomies', 'Taxonomy General Name', 'text_domain' ),
		'singular_name'              => _x( 'Taxonomy', 'Taxonomy Singular Name', 'text_domain' ),
		'menu_name'                  => __( 'Tipos Encuentros', 'text_domain' ),
		'all_items'                  => __( 'Todos los tipos', 'text_domain' ),
		'parent_item'                => __( 'Tipo superior', 'text_domain' ),
		'parent_item_colon'          => __( 'Tipo superior:', 'text_domain' ),
		'new_item_name'              => __( 'Nombre nuevo tipo', 'text_domain' ),
		'add_new_item'               => __( 'Añadir nuevo tipo', 'text_domain' ),
		'edit_item'                  => __( 'Editar tipo', 'text_domain' ),
		'update_item'                => __( 'Actualizar tipo', 'text_domain' ),
		'view_item'                  => __( 'Ver tipo', 'text_domain' ),
		'separate_items_with_commas' => __( 'Separar tipos por comas', 'text_domain' ),
		'add_or_remove_items'        => __( 'Añadir o elimnar tipo', 'text_domain' ),
		'choose_from_most_used'      => __( 'Elige entre los más usados', 'text_domain' ),
		'popular_items'              => __( 'Tipos poulares', 'text_domain' ),
		'search_items'               => __( 'Buscar tipo', 'text_domain' ),
		'not_found'                  => __( 'No encontrado', 'text_domain' ),
		'no_terms'                   => __( 'No hay tipos', 'text_domain' ),
		'items_list'                 => __( 'Lista tipo', 'text_domain' ),
		'items_list_navigation'      => __( 'Navegación lista tipos', 'text_domain' ),
	);
	$rewrite = array(
		'slug'                       => 'encuentros-sexuales',
		'with_front'                 => true,
		'hierarchical'               => false,
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'rewrite'                    => $rewrite,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'taxonomy', array( 'encuentros-sexuales' ), $args );

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