Support

Account

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; 
    ?>