Skip to content
This repository was archived by the owner on Jul 20, 2022. It is now read-only.

Commit 0d3c078

Browse files
authored
Merge pull request #5 from brandu-agency/acf/tag-visibility-field-fix
Acf/tag visibility field fix
2 parents 9674f45 + 3b34150 commit 0d3c078

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/woocommerce/woocommerce.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ function math_display_product_tags() {
114114
if ($terms) :
115115
echo '<div class="product-tags">';
116116
foreach ( $terms as $term ) :
117-
$show = get_field('show_tag_on_page', $term);
118-
if ($show[0] === 'show') :
117+
$dont_show = get_field('dont_show_tag_on_page', $term);
118+
if ($dont_show != true) :
119119
echo '<span class="product-tag">' . $term->name . ' </span>';
120120
endif;
121121
endforeach;

0 commit comments

Comments
 (0)