Home › Forums › ACF PRO › Multiple Taxonomies in a Repeater? › Reply To: Multiple Taxonomies in a Repeater?
Yes, there would need to be something if a taxonomy field can have multiple selections, I missed that in your original post
if (have_rows('repeater_field')) {
while (have_rows('repeater_field')) {
the_row();
$name = get_sub_field('name_field');
$titles = get_sub_field('title_field');
echo $name->name,': ';
$count = 0;
foreach ($titles as $title) {
$count++;
if ($count > 1) {
echo ', ';
}
echo $title->name;
}
echo '<br />';
}
}
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.