Home › Forums › ACF PRO › Multiple Taxonomies in a Repeater? › Reply To: Multiple Taxonomies in a Repeater?
With one small addition it worked:
if (have_rows('repeater_field')) {
while (have_rows('repeater_field')) {
the_row();
$name = get_sub_field('name_field');
$title = get_sub_field('title_field');
echo $name->name,': ',$title[0]->name;
}
}
Each name may have multiple titles, so would there have to be another loop within to get all of those?
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.