Home › Forums › Add-ons › Repeater Field › Repeater Taxonomy – URL link › Reply To: Repeater Taxonomy – URL link
I have been using something like this for my projects.
hope it helps.
This code is on the taxonomy-(your taxonomy).php file
<?php $term = get_term_by( 'slug', get_query_var( 'term' ), get_query_var( 'taxonomy' ) ); // get current term ?>
<?php if ( have_rows('category_slideshow', $term) ): ?>
<?php while ( have_rows('category_slideshow', $term) ) : the_row();
$img = get_sub_field('category_slideshow_image', $term);
?>
<img src="<?php echo $img['url']; ?>" alt="<?php echo $img['alt'] ?>" />
<?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.