Brand Taxonomy for Produse CPT
Brand Taxonomy for Produse CPT
// Register Custom Taxonomy function brand_taxonomy() { $labels = array( 'name' => _x( 'Branduri', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'Brand', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Branduri', 'text_domain' ), 'all_items' => __( 'Toate brandurile', 'text_domain' ), 'parent_item' => __( 'Parent Item', 'text_domain' ), 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ), 'new_item_name' => __( 'Brand Nou Nume', 'text_domain' ), 'add_new_item' => __( 'Adauga Brand', 'text_domain' ), 'edit_item' => __( 'Editeaza Brandul', 'text_domain' ), 'update_item' => __( 'Actualizeaza Brand', 'text_domain' ), 'view_item' => __( 'Vezi Brand', 'text_domain' ), 'separate_items_with_commas' => __( 'Separa branduri cu virgula', 'text_domain' ), 'add_or_remove_items' => __( 'Adauga sau sterge brand', 'text_domain' ), 'choose_from_most_used' => __( 'Alege din cele mai folosite branduri', 'text_domain' ), 'popular_items' => __( 'Branduri Populare', 'text_domain' ), 'search_items' => __( 'Cauta branduri', 'text_domain' ), 'not_found' => __( 'Nu a fost gasit', 'text_domain' ), 'no_terms' => __( 'Nici un brand', 'text_domain' ), 'items_list' => __( 'Lista de branduri', 'text_domain' ), 'items_list_navigation' => __( 'Navigare in lista de branduri', '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( 'brand', array( 'produse' ), $args ); } add_action( 'init', 'brand_taxonomy', 0 );