How to echo a attribute label in woocommerce?
-
I have really stuggled with this and i cant seem to find a good answer. Im trying to echo the products attrubute lables inside a class in a woocommerce loop. To echo just the attribute slug would have been even better. I have tried:
class="<?php echo wc_attribute_label( $name ); ?>"
but it dosent work. What am I doing wrong?
Thansk for any help possible!
Kind regards, Richard
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to echo a attribute label in woocommerce?’ is closed to new replies.