Home › Forums › Add-ons › Repeater Field › ACF Checkbox display › Reply To: ACF Checkbox display
Thanks for the idea John! I ended up outputting what each array was defining and then went from there. It worked out great.
Here’s my code for Professional:
<?php $enterprise = get_sub_field('feature_software_version'); ?>
<?php if ( $enterprise[0] === 'professional') {?>
<li><?php the_sub_field('feature_headline'); ?></li>
<?php } else {
}?>
Here’s my code for Enterprise:
<?php $enterprise = get_sub_field('feature_software_version'); ?>
<?php if ( $enterprise[0] === 'enterprise') {?>
<li><?php the_sub_field('feature_headline'); ?></li>
<?php } else {
}?>
Then above I just placed some text that reads, “Includes features of Standard‘ and in Enterprise, the same but Standard and Professional.
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.