Home › Forums › ACF PRO › Order taxonomy by repeater field › Reply To: Order taxonomy by repeater field
I finally found it:
<?php if( have_rows('mdb_artist') ): ?>
<?php while( have_rows('mdb_artist') ): the_row();
$content = get_sub_field('mdb_artist_field');
?>
<a href="<?php echo get_term_link( $content[0]->term_id ); ?>"><?php echo $content[0]->name; ?></a>
<br>
<?php endwhile; ?>
<?php 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.