Home › Forums › ACF PRO › Acf front end for Repeater which has taxonomy as subfield › Reply To: Acf front end for Repeater which has taxonomy as subfield
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 🙂
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.