Categoria de produtos
Usado no custom post type produtos
// Register Custom Taxonomy function produtos_category() { $labels = array( 'name' => _x( 'Tipos', 'Taxonomy General Name', 'theme' ), 'singular_name' => _x( 'Tipo', 'Taxonomy Singular Name', 'theme' ), 'menu_name' => __( 'Tipo', 'theme' ), 'all_items' => __( 'Todos', 'theme' ), 'parent_item' => __( 'Pai', 'theme' ), 'parent_item_colon' => __( 'Pai', 'theme' ), 'new_item_name' => __( 'Novo', 'theme' ), 'add_new_item' => __( 'Novo', 'theme' ), 'edit_item' => __( 'Editar', 'theme' ), 'update_item' => __( 'Atualizar', 'theme' ), 'view_item' => __( 'Ver', 'theme' ), 'separate_items_with_commas' => __( 'Separado por vírgulas', 'theme' ), 'add_or_remove_items' => __( 'Adicionar ou remover', 'theme' ), 'choose_from_most_used' => __( 'Selecione dos mais usados', 'theme' ), 'popular_items' => __( 'Populares', 'theme' ), 'search_items' => __( 'Pesquisar', 'theme' ), 'not_found' => __( 'Nada encontrado', 'theme' ), 'no_terms' => __( 'Sem itens', 'theme' ), 'items_list' => __( 'Listagem', 'theme' ), 'items_list_navigation' => __( 'Navegação', 'theme' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, ); register_taxonomy( 'tipo', array( 'produtos' ), $args ); } add_action( 'init', 'produtos_category', 0 );