Website Building » WooCommerce » How Do I Show Taxonomy in WooCommerce?

How Do I Show Taxonomy in WooCommerce?

Last updated on January 15, 2023 @ 4:19 pm

If you’re running a WooCommerce store, you might be wondering how you can show your taxonomy in WooCommerce. By default, WooCommerce doesn’t show taxonomy terms on product pages or in the shop loop.

However, there are a few ways you can change this.

One way to show taxonomy in WooCommerce is to edit your theme files. If you’re comfortable with code and have access to your theme files, you can add the following code to your theme’s functions.php file:

function WooCommerce_taxonomy_archive_description() {
  if ( is_tax( array( 'product_cat', 'product_tag' ) ) && get_query_var( 'paged' ) == 0 ) {
    $description = wc_format_content( term_description() );
    if ( $description ) {
      echo '<div class="term-description">' . $description . '</div>';
    }
  }
}

This code will show the description for your product categories and tags on the first page of the archive. If a visitor is viewing a paginated page, they’ll see the description above the products.

PRO TIP: If you are using WooCommerce to run an online store, it is important to understand how to show taxonomy in WooCommerce. This taxonomy will help you categorize and organize your products, making it easier for customers to find what they are looking for. It can also help you keep track of inventory and manage shipping and returns. However, if you do not set up your taxonomy correctly, it can cause problems with your checkout process, order management, and even your website’s search engine optimization.

Another way to show taxonomy in WooCommerce is with a plugin.

If you don’t want to edit your theme files, or if you’re using a theme that doesn’t have this functionality built-in, you can use a plugin like WooCommerce Taxonomy Archives. This plugin will add the term description to WooCommerce product archives automatically.

Conclusion:

How Do I Show Taxonomy in WooCommerce?

There are a few ways that you can change the default WooCommerce settings to show taxonomy terms on product pages or in the shop loop. One way is to edit your theme files and add some code to the functions.php file. Another way is to use a plugin like WooCommerce Taxonomy Archives.

Dale Leydon

Dale Leydon

Sysadmin turned Javascript developer. Owner of 20+ apps graveyard, and a couple of successful ones.