Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Taxonomía de etiquetas

if ( ! function_exists( 'rucarpe_ct_podcast' ) ) {

// Register Custom Taxonomy
function rucarpe_ct_podcast() {

	$labels = array(
		'name'                       => _x( 'Etiquetas', 'Taxonomy General Name', 'rucarpe_ct_podcast_td' ),
		'singular_name'              => _x( 'Etiqueta', 'Taxonomy Singular Name', 'rucarpe_ct_podcast_td' ),
		'menu_name'                  => __( 'Etiqueta', 'rucarpe_ct_podcast_td' ),
		'all_items'                  => __( 'Todas las etiquetas', 'rucarpe_ct_podcast_td' ),
		'parent_item'                => __( 'Etiqueta padre', 'rucarpe_ct_podcast_td' ),
		'parent_item_colon'          => __( 'Etiqueta padre:', 'rucarpe_ct_podcast_td' ),
		'new_item_name'              => __( 'Nombre nueva etiqueta', 'rucarpe_ct_podcast_td' ),
		'add_new_item'               => __( 'Añadir nueva etiqueta', 'rucarpe_ct_podcast_td' ),
		'edit_item'                  => __( 'Editar etiqueta', 'rucarpe_ct_podcast_td' ),
		'update_item'                => __( 'Actualizar etiqueta', 'rucarpe_ct_podcast_td' ),
		'view_item'                  => __( 'Ver etiqueta', 'rucarpe_ct_podcast_td' ),
		'separate_items_with_commas' => __( 'Separar etiquetas con comas', 'rucarpe_ct_podcast_td' ),
		'add_or_remove_items'        => __( 'Añadir o borrar etiquetas', 'rucarpe_ct_podcast_td' ),
		'choose_from_most_used'      => __( 'Elegir entre las etiquetas más usadas', 'rucarpe_ct_podcast_td' ),
		'popular_items'              => __( 'Etiquetas más usadas', 'rucarpe_ct_podcast_td' ),
		'search_items'               => __( 'Buscar etiquetas', 'rucarpe_ct_podcast_td' ),
		'not_found'                  => __( 'No encontrada', 'rucarpe_ct_podcast_td' ),
		'no_terms'                   => __( 'No hay etiquetas', 'rucarpe_ct_podcast_td' ),
		'items_list'                 => __( 'Lista de etiquetas', 'rucarpe_ct_podcast_td' ),
		'items_list_navigation'      => __( 'Lista de navegación de etiquetas', 'rucarpe_ct_podcast_td' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
	);
	register_taxonomy( 'rucarpe_ctax_podcast', array( 'rucarpe_cpt_podcast' ), $args );

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

}