Home › Forums › Add-ons › Repeater Field › Show Custom Taxonomy name from repeter field with "taxonomy sub field" › Reply To: Show Custom Taxonomy name from repeter field with "taxonomy sub field"
Hi Guys. Finally I found the solution!!!!
I leave for you the solution that I found:
<?php
if( have_rows('repeater_field_name') ):
while( have_rows('repeater_field_name') ): the_row();
$tax_val = get_sub_field('taxonomy_sub_field_name');
$taxonomy = 'custom_taxonomy_name';
$term_name = get_term($tax_val, $taxonomy);
if( $tax_val ): echo $term_name->name;
endif;
endwhile;
endif;
?>
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.