Hi @madhan2085
I’m afraid the the_sub_field()
function is not an appropriate function to use with the taxonomy field. Kindly use the get_sub_field()
function like this instead:
$the_product_cat = get_sub_field(‘product_category’);
print_r($the_product_cat);
These pages should give you more idea about it: https://www.advancedcustomfields.com/resources/taxonomy/, https://www.advancedcustomfields.com/resources/get_sub_field/.
I hope this helps 🙂