• Hi, firstly thank you so much for the support that you provide here.
    It is amongst the best support anywhere for any product, that I have experienced.

    I’m trying to display a product-tag name or a product-category name on the relevant page
    So for example on the page: website.com/product-tag/tag-name

    It currently shows the name of the product tag at the top in the title section, but I need to hide the title section, and I wish to show the name of the product-tag elsewhere on the page.

    Please can you tell me the code to show the tag name,

    Is it something like:
    woocommerce_taxonomy_archive_name();
    (Just a guess based on the tag description code you provided previously?)

    I also need to show product-category names on product-category pages, is there a different code for that?

    Thank you in advance for your support, I will continue building websites using Woocommerce as the support is so good.

Viewing 1 replies (of 1 total)
  • Thread Starter designsonline

    (@designsonline)

    Found code that works, but I don’t know if it is clean code or the best way to do it:

    <?php $term = get_term_by( ‘slug’, get_query_var( ‘term’ ), get_query_var( ‘taxonomy’ ) ); echo $term->name; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘What code for displaying taxonomy name?’ is closed to new replies.