Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Soluções – Categoria

// Register Custom Taxonomy
function solucoes_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Categorias', 'Taxonomy General Name', 'text-domain' ),
		'singular_name'              => _x( 'Categoria', 'Taxonomy Singular Name', 'text-domain' ),
		'menu_name'                  => __( 'Categoria', 'text-domain' ),
		'all_items'                  => __( 'Todos os itens', 'text-domain' ),
		'parent_item'                => __( 'Item ascendente', 'text-domain' ),
		'parent_item_colon'          => __( 'Item ascendente:', 'text-domain' ),
		'new_item_name'              => __( 'Novo item', 'text-domain' ),
		'add_new_item'               => __( 'Inserir novo item', 'text-domain' ),
		'edit_item'                  => __( 'Alterar item', 'text-domain' ),
		'update_item'                => __( 'Atualizar item', 'text-domain' ),
		'view_item'                  => __( 'Visualizar item', 'text-domain' ),
		'separate_items_with_commas' => __( 'Separe com vírgulas', 'text-domain' ),
		'add_or_remove_items'        => __( 'Inserir ou remover itens', 'text-domain' ),
		'choose_from_most_used'      => __( 'Escolha através dos mais usados', 'text-domain' ),
		'popular_items'              => __( 'Itens populares', 'text-domain' ),
		'search_items'               => __( 'Procurar itens', 'text-domain' ),
		'not_found'                  => __( 'Não encontrado', 'text-domain' ),
		'no_terms'                   => __( 'Sem itens', 'text-domain' ),
		'items_list'                 => __( 'Lista de itens', 'text-domain' ),
		'items_list_navigation'      => __( 'Navegação da lista de itens', 'text-domain' ),
	);
	$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( 'solucoes_tax', array( 'solucoes' ), $args );

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