Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

TAXONOMIA CONTINENTES

Taxonomia continentes para custom post type de banderas

if ( ! function_exists( 'crear_continentes' ) ) {

// Register Custom Taxonomy
function crear_continentes() {

	$labels = array(
		'name'                       => _x( 'Continentes', 'Taxonomy General Name', 'continentes' ),
		'singular_name'              => _x( 'Continente', 'Taxonomy Singular Name', 'continentes' ),
		'menu_name'                  => __( 'Continentes', 'continentes' ),
		'all_items'                  => __( 'Todos los Continentes', 'continentes' ),
		'parent_item'                => __( 'Parent Item', 'continentes' ),
		'parent_item_colon'          => __( 'Parent Item:', 'continentes' ),
		'new_item_name'              => __( 'Nuevo Continente', 'continentes' ),
		'add_new_item'               => __( 'Añadir Nuevo Continente', 'continentes' ),
		'edit_item'                  => __( 'Editar Continente', 'continentes' ),
		'update_item'                => __( 'Actualizar Continente', 'continentes' ),
		'view_item'                  => __( 'Ver Continente', 'continentes' ),
		'separate_items_with_commas' => __( 'Separar Continentes con comas', 'continentes' ),
		'add_or_remove_items'        => __( 'Añadir o Eliminar Continentes', 'continentes' ),
		'choose_from_most_used'      => __( 'Elegir Continente', 'continentes' ),
		'popular_items'              => __( 'Continentes Populares', 'continentes' ),
		'search_items'               => __( 'Buscar Continente', 'continentes' ),
		'not_found'                  => __( 'No encontrado', 'continentes' ),
		'no_terms'                   => __( 'Sin continentes', 'continentes' ),
		'items_list'                 => __( 'Lista Continentes', 'continentes' ),
		'items_list_navigation'      => __( 'Items list navigation', 'continentes' ),
	);
	$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( 'Continentes', array( 'bandera' ), $args );

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

}