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" >

    <?php 

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

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

    <?php endforeach; ?>


</fieldset>


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

        )

    [error_data] => Array
        (
        )
)

Hi, have you found the solution?
thanks

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