Create Custom Taxonomy

The way 1: You should use this way

Products >> Custom Taxonomy >> Add Taxonomy
Add Custom Taxonomy
Show in Listing: If choose this, this taxonomy will display in listing of product

Add Value (term) for a taxonomy

Click folder icon in Manage taxonomy
Click to add term for taxonomy
Add Name for taxonomy

The way 2

Support to make Unlimited Custom Taxonomy
  • Go to WooCommerce >> Settings >> Booking & Rental >> Genral >> Total Custom Taxonomy: Insert taxonomy number
  • After inserting the taxonomy number , you will see the taxonomy made in Admin
  • Change Name, Slug of Taxonomy: Open file functions.php in theme or child theme and insert the bellow code
1
add_filter(
2
'register_taxonomy_ovabrw_1',
3
function ($params){
4
return array( 'slug' => 'type', 'name' => esc_html__( 'Taxonomy 1', 'ova-brw' ) );
5
}
6
);
7
​
8
add_filter(
9
'register_taxonomy_ovabrw_2',
10
function ($params){
11
return array( 'slug' => 'brand', 'name' => esc_html__( 'Taxonomy 2', 'ova-brw' ) );
12
}
13
);
14
​
Copied!
  • After changing, you will see this new taxnomy in admin
  • When you create a new product, you will see these taxonomy
​
Last modified 10mo ago