Contents
How to display categories, subcategories, and products in WooCommerce?
Unfortunately that doesn’t quite work as WooCommerce has built-in styling for clearing items, which would appear at the beginning of a row with the default display. So instead of that, we’ll turn off display of categories and subcategories on our archive pages, so that just products are displayed.
How to display archive pages in WooCommerce templates?
The file WooCommerce uses to display archive pages is archive-product.php, which is in the templates folder. Inside that file, you can find this code, which outputs the categories and products: 01 02
Are there any good WooCommerce plugins for WordPress?
In addition to all the high-quality WooCommerce plugins available, there are also thousands of other high-quality WordPress plugins on CodeCanyon that can help enhance your website. Take a look through the extensive library of plugins, and you’ll find all types of plugins, including forum, media, and SEO plugins.
How to display categories, subcategories, and products?
Now, let’s take a look at how WooCommerce displays the product categories and products on archive pages. If you haven’t already, open the Customizer, select the WooCommerce tab, and click on Product Catalog. Under Shop page display, select Show categories & products, and under Category display, select Show subcategories & products.
What are the subcategories of a clothing category?
Under these main categories are sub-categories like men’s wear, women’s wear, and children’s wear, all under the Apparel parent category. In this case, WooCommerce’s product categories feature would come in handy.
How to display the subcategories from a specific category in WordPress?
Through the WordPress interface, it is quite simple to create menus and pages that link to the different WooCommerce sub-categories you have created manually either by using Appearance > Menus or by creating hyperlinks to the respective subcategories.
Why is there no inline code in WooCommerce?
There are cases where WooCommerce store owners and developers do not wish to use inline code, mainly where they do not wish to temper with “good” code or in cases where there is extensive customization that could get derailed by adding code to functions.php.