Hello,
I’ve tried to contact the woocommerce support service, but they re-transfered me to you
So here’s my taxonomies settings, maybe something’s wrong with them?
function cptui_register_my_taxes_artist() {
/**
* Taxonomy: Artists.
*/
$labels = [
"name" => esc_html__( "Artists", "custom-post-type-ui" ),
"singular_name" => esc_html__( "Artist", "custom-post-type-ui" ),
"menu_name" => esc_html__( "Artist", "custom-post-type-ui" ),
"all_items" => esc_html__( "All Artists", "custom-post-type-ui" ),
"edit_item" => esc_html__( "Edit Artist", "custom-post-type-ui" ),
"view_item" => esc_html__( "View Artist", "custom-post-type-ui" ),
"update_item" => esc_html__( "Update Artist", "custom-post-type-ui" ),
"add_new_item" => esc_html__( "Add New Artist", "custom-post-type-ui" ),
"new_item_name" => esc_html__( "New Artist Name", "custom-post-type-ui" ),
"parent_item" => esc_html__( "Parent Artist", "custom-post-type-ui" ),
"parent_item_colon" => esc_html__( "Parent Artist:", "custom-post-type-ui" ),
"search_items" => esc_html__( "Search Artists", "custom-post-type-ui" ),
"popular_items" => esc_html__( "Popular Artists", "custom-post-type-ui" ),
"separate_items_with_commas" => esc_html__( "Separate Artists wth Commas", "custom-post-type-ui" ),
"add_or_remove_items" => esc_html__( "Add or Remove Artists", "custom-post-type-ui" ),
"choose_from_most_used" => esc_html__( "Choose From Most Used Artist", "custom-post-type-ui" ),
];
$args = [
"label" => esc_html__( "Artists", "custom-post-type-ui" ),
"labels" => $labels,
"public" => true,
"publicly_queryable" => true,
"hierarchical" => true,
"show_ui" => true,
"show_in_menu" => true,
"show_in_nav_menus" => true,
"query_var" => true,
"rewrite" => [ 'slug' => 'artist', 'with_front' => true, 'hierarchical' => true, ],
"show_admin_column" => true,
"show_in_rest" => true,
"show_tagcloud" => false,
"rest_base" => "artist",
"rest_controller_class" => "WP_REST_Terms_Controller",
"rest_namespace" => "wp/v2",
"show_in_quick_edit" => true,
"sort" => false,
"show_in_graphql" => false,
];
register_taxonomy( "artist", [ "post", "product" ], $args );
}
add_action( 'init', 'cptui_register_my_taxes_artist' );
Thanks