WooCommerce Custom Taxonomy is a feature to show extra product data based on a class. It may be your product color, size, or maybe style.
What is WooCommerce Custom Taxonomy/WooCommerce Custom Field?
Most WordPress beginners face a conflict between Custom Taxonomy and Custom Field. So let’s clear up the conflict in brief.
First of all, both items are used to show extra product data. But there are some types of data we use for each product individually, like product title, price, e-mail, and maps. In that case, use Custom Field.
On the other hand, sometimes we need to classify a group of products by things like color, size, category, etc. Use Custom Taxonomy to classify a group of products.
So you can use WooCommerce Custom Taxonomy and WooCommerce Custom Fields to show extra product information. Use Custom Taxonomy to show the info of a group of products and Custom Field to show the individual info of a single product.
However, this article is about using Custom Taxonomy. If you want to know more about Custom Fields see How to Use Custom Fields?
How to add a WooCommerce Custom Taxonomy?
Adding a WooCommerce Custom Taxonomy requires a plugin. There are some plugins to perform that. Among them, I suggest using Custom Post Types and Custom Fields creator – WCK as it is user-friendly.
Now I’ll show you step-by-step how to add and show Custom Taxonomy in WooCommerce.
Step 1: Installation of the required plugin
First, navigate to Dashboard > Plugins > Add New, and in the Search Plugin text-box, type WCK. There will be some plugins. Among them, install and activate Custom Post Types and Custom Fields creator – WCK.
Step 2: Create Custom Taxonomy
Follow the steps below to create a custom Taxonomy
- Navigate to Dashboard > WCK > Taxonomy Creator
- From here, create a Taxonomy Name (The name of the taxonomy. Name must not contain capital letters or spaces.)
- Input the Singular Label
- Input the Plural Label
- Select the “Attach to option.” Also Select product if you want to add the taxonomy for product.
- Select Hierarchical true
And finally, add the entry.
I want to add a custom Taxonomy to my product to show the product’s color information. So in the picture given above, I’ve added a Taxonomy named “color” and attached it to the product.
Step 3: Add product
Now head over to Dashboard->Product->Add New (or edit an existing one)
Input the Product Name in the “Add New Product” text-box.
Step 4: Add Product image
Head over to the sidebar and click on “Set product image” from the product image section.
Click on Upload Files->Select Files and select the image file for your product.
After selecting the image file, click on the “Set product image” button as shown in the screenshot.
Woo Product Table Pro
The Most Popular Product Table Plugin For WooCommerce
Step 5: Input the Taxonomy for product
Here the created value taxonomy was Color (in step 2). So in the sidebar, there will be a section called “Color”.
Now we’ll input the value of the color for this product. To input, the color name, click on +Add New Color and input the value in the text box. Finally, click on the “Add New Color” button.
Now click on the “Publish” button from the top right sidebar.
Click on “View Page” to see the changes made.
There is a plugin named Woo Product Table Pro by which you can show the Custom Taxonomy in a Product Table in a dynamic way. Using the plugin, the product table may look like
In the table, you can see a column marked “Color” showing the color of different products.
So isn’t it easy to make a WooCommerce Custom Taxonomy and show the Custom Taxonomy in the product table? Whatever I know, making some easy tasks for beginners falls into this problem. If you face any problems, please go through the comment section.