Home › Forums › Add-ons › Repeater Field › Display repeater array values › Reply To: Display repeater array values
Hi @phantasmix
I’ve just checked your checkbox field, and it seems it has the same labels and values. This makes the code much simpler. You can just get the subfield value like before:
$expertise = get_sub_field('expertise');
And then loop it like this:
<?php foreach( $expertise as $value ): ?>
<div><?php echo $value; ?></div>
<?php endforeach; ?>
Please check it out. I hope this helps.
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.