0
I use this code to display a list of the sub categories of Wordpress posts, I wanted to know how I do to instead of picking the category of posts I pick the category of Woocommerce products.
        <!-- CATEGORIA -->
    <?php $id_da_categoria = get_cat_id('nome da categoria'); 
    $link_da_categoria = get_category_link($id_da_categoria); ?>
    <a href="<?php echo $link_da_categoria ;?>"> CATEGORIA </a>
    <ul>
        <!-- Exibe as sub categorias em uma lista -->
        <?php
        $id_da_categoria = get_cat_id('categoria');
        wp_list_categories('sort_column=name&child_of='."$id_da_categoria".'&title_li=');
        ?>
    </ul>
Thanks Fellipe Sores but I could not, I’m beginner and I don’t need anything PHP.
– Josevaldo Albuquerque
In fact what I want is to create a link to when clicking enter the category page and just below this link a list displaying all the sub categories. I don’t know if I’m being clear I apologize if I haven’t made my doubt clear.
– Josevaldo Albuquerque