Product Categories

eCommerce Product Catalog allows to define unlimited amount of product categories. Product categories can be hierarchical or not.

To add or edit product categories, go to Products > Product Categories. The edit screen allows you to define:

  • Category name – this is the title of product category page
  • Slug – this is the URL of product category page
  • Parent – set parent of hierarchical category
  • Description – write the description for the product category. You can format it with the visual editor. The description shows up under the category name on the category page.
  • Category Image – the image shown for the category on category listings and on the category page (see Disable Category Image)

Add New Product Category form with name, slug, parent category, description and category image fields

Showing products from certain categories

Two methods are available to show products from categories:

Use standard category pages:

  • Create menu in Appearance > Menu with product category pages and show it whenever the menu can be placed in the theme
  • Use product category widget in sidebar – see product category widget docs

Use [show_products category="id1, id2"] shortcode – see product shortcode docs for more information

Showing categories on any page

You can choose what the main catalog page and category pages show in the General Settings: see Main categories on product listing and Subcategories on category page. There is also a categories shortcode available.

Find out the Product Category ID

Find the Product Category ID in the ID column of the categories list or on its edit screen. For categories with products, the Shortcode column shows ready-to-copy shortcodes that display the category products or the category itself. Use the ID with the [show_products] shortcode:

Product Categories screen with the ID, Image, Name, Description, Count and Shortcode columns

Product Categories can be extended with Smarter Product URLs extension. It allows to insert the category slug into the product URL. Click to see more

To change the order in which categories are listed, see Change Product Category Order.