Display the terms or product attributes for a specific product category(woocommerce)

I have been researching all over the net and forums regarding my question but I can’t seem to produce the correct results. Basically I’m trying to display the terms or product attributes for only a specific product category.

Here is the code I have been working on.

<fieldset class="liquor-types-control filter-controls" >


    $terms = get_terms( 'wine', /*<--Product Category */ 'pa_liquor-types' /* <--Product Attribute */);
    foreach ( $terms as $term ) :

        <input type="checkbox" value="<?php echo "." . $term->slug ?>"  /> 
        <?php echo $term->name ?>

    <?php endforeach; ?>


    [errors] => Array
            [invalid_taxonomy] => Array
                    [0] => Invalid taxonomy.


    [error_data] => Array

Hi, have you found the solution?

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.