Product categories are the primary way to group products with similar features , which also can be extended by creating subcategories if desired.
As an example, if you are in a fashion or clothing business, you might have
Pants as your shop’s top-level categories.
Adding tags and categories is an essential part of setting up your online store. Tags and categories can help you organize your shop better, and they have an overall positive impact on your sales.
Add or edit categories
Categories can be managed by navigating to the Products » Categories screen and similar to categories on your posts, you can add, delete, and edit product categories as well.
- Log into your WordPress website and navigate to Products » Categories.
- Enter a Name.
- Optionally, enter a Slug.
- This is the URL-friendly version of the name.
- Optionally, choose a Parent if this is a subcategory.
- Optionally, enter a Description.
- The description is not prominent by default; However, entering it might help to increase usability and improve SEO in your shop.
- Choose a Display type ― This will determine what is shown on the category’s landing page.
- Standard — Uses your theme’s default behavior.
- Subcategories — Will display only the subcategories.
- Products — Only displays products.
- Both — Will display subcategories and products below that.
- Optionally, upload an image or thumbnail.
- Click Add new category button to save your new category.
This table lists all of your product categories by row. Categories are displayed hierarchically and alphabetically, and subcategories are displayed beneath their parents and are prefaced by long dashes. These dashed are only there to show the hierarchy and are not part of a category’s name.
The table of product categories contains the following columns:
- [ ✔] — A checkbox that when clicked (checked), selects that particular category to be deleted with a bulk action.
- Name — The name of the category.
- Description – Categories may have an optional description.
- Slug — The slug of a category and usually in lower case letters.
- Count — The number of products which are members of the category.
Search through categories
Above the table, to the right, is a search box where you can enter a word, or series of words, and click the “Search categories” button to search and display all the categories meeting your search words.
The following fields can be modified via the Quick Edit section:
- Category name — To reiterate, the category name must be unique.
- Category slug — Again, the category slug also must be unique.
The Screen Options allow you to choose which columns are displayed, or not displayed, in the underlying Table. Clicking on the screen options tab will show a list of columns with a check-box next to each column.
Also, the number of categories to display in the Table of Categories can be set and modified from here.
Categories can also be reorderedorsorted by dragging and dropping. The category thumbnails will then be organized in the same order that they appear in the back-end.
This order is used by default on the front end whenever the categories are listed. This includes both widgets and the category or subcategory views on product pages.
Fallback default category
Every single product must be assigned to a category, and a default category will be automatically assigned if the product is not assigned to any other category.
By default, this category will be named Uncategorized and can not be removed from the category list. However, you can rename the fallback category or switch the default category using the row actions underneath the category name.
While adding a new product via Products » Add Product, you can select one or multiple product categories from the list.
The taxonomy for product category is
Custom slug for category archives
Each category has its own archive, viewable at:
product-category section of the above URL structure can be adjusted by following the steps below:
- Log into your WordPress website and navigate to Settings » Permalinks.
- Scroll down until you locate the Product category base text-field.
- From here you can configure the URL structure by modifying the default value.
- Click Save Settings to flush existing rewrite rules or permalinks.
product-category base should not conflict with the other taxonomy permalink bases as WordPress requires something unique and distinctive to be entered for each base.
Last updated: 2 years ago