As an example, if you are in a fashion or clothing business, you might have T-Shirts, hoodies, and pants as your shop’s top-level 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.
Login to the your WordPress Dashboard.
Click the Products tab.
Click the Categories sub-tab.
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, within a Shop by Category block you may want to display it. Entering this might also help to increase usability and improve SEO within 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. Usually in lower case letters.
Count — The number of products which are members of the category.
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 reordered or sorted by dragging and dropping.
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.
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.