Hi,
I have this ACF field:
Field Name: brand
Field Type: Taxonomy
Taxonomy: pa_brand

WooCommerce Product Attribute:
Name: brand
slug: brand
term id: 51

I’m trying these codes but it doesn’t work:
<?php the_field(‘brand’, $term); ?>
<?php the_field(‘brand’, ‘product_51’); ?>
Or how will I know the category to use if I’m wrong.
I think I already got it
$brand = get_field_object("brand");
$term = get_term($brand["value"], "pa_brand");
echo $brand["value"];