WooCommerce Custom Taxonomy is the feature to show extra product data based on a class. It may be your product color, size or may be style.
What is WooCommerce Custom Taxonomy/WooCommerce Custom Field?
Most WordPress beginner face conflict between Custom Taxonomy and Custom Field. So let’s clear the conflict in a brief.
First of all, the 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, maps. In that case use Custom Field.
On the other hand, sometimes we need to classify a group of product like color, size, category etc. Use Custom Taxonomy to classify a group of product.
So you can use WooCommerce Custom Taxonomy and WooCommerce Custom Field to show extra product information. Use Custom Taxonomy to show the info of a group of product and Custom Field to show individual info of a single product.
However, this article is about using Custom Taxonomy. If you want to know more about Custom Field see How to Use Custom Fields?
How to add WooCommerce Custom Taxonomy?
Adding a WooCommerce Custom Taxonomy requires a plugin. There are some plugin to perform that. Among them I suggest to use Custom Post Types and Custom Fields creator – WCK as it is user friendly.
Now I’ll show step by step how to add and show Custom Taxonomy in WooCommerce.
Step 1: Installation the required plugin
First navigate to Dashboard->Plugin->Add New and in the Search Plugin text-box type WCK. There will appear some plugin. Among them install and active Custom Post Types and Custom Fields creator – WCK.
Step 2: Create Custom Taxonomy
Follow the steps below to create 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 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 custom Taxonomy to my product to show the products color information. So in the picture given above I’ve added a Taxonomy named color and attached it to product.
Step 3: Add product
Now head over to Dashboard->Product->Add New (or edit an existing one)
Input the Product Name in Add New Product text-box.
Step 4: Add Product image
Head over to sidebar and click on Set product image from product image section.
Click on Upload Files->Select Files and select the image file for your product.
After selecting the image file click on Set product image button as given in screenshot.
Step 5: Input the Taxonomy for product
Here the created value taxonomy was Color (in step 2). So at the sidebar there will be a section called Color.
Now we’ll input the value of 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 Publish button from top right sidebar.
Click on View Page to see the changes done.
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 red marked Color showing the color of different product.
So isn’t it easy to make WooCommerce Custom Taxonomy and show the Custom Taxonomy in product table. Whatever I know making some easy tasks beginner falls in problem. If you face any problem please go through the comment section.