#: '; // Get terms for attribute taxonomy or value if its a custom attribute if ( $attribute['is_taxonomy'] ) { $post_terms = wp_get_post_terms( $parent_data['id'], $attribute['name'] ); foreach ( $post_terms as $term ) { echo ''; } } else { $options = wc_get_text_attributes( $attribute['value'] ); foreach ( $options as $option ) { echo ''; } } echo ''; } ?>