get product attributes for current product and store it in a variable
get_terms() Retrieves the terms in a given taxonomy or list of taxonomies. What you need is get_the_terms() Retrieves the terms of the taxonomy that are attached to the post. So you can simply replace $brand_terms = get_terms( ‘pa_liquor-brands’ ); with $brand_terms = get_the_terms( $post, ‘pa_liquor-brands’ ); And that should to the trick. You can read … Read more