Home › Forums › Front-end Issues › Checkbox within a group › Reply To: Checkbox within a group
Hi John,
Thanks, I cracked it with this (for other people’s reference)
<?php
$career_one_group = get_sub_field('career_one_group');
if( $career_one_group ):
?>
<?php if( have_rows('career_one_group') ): ?>
<?php while( have_rows('career_one_group') ): the_row();
$show_careers_information = get_sub_field('show_careers_information');
$show_local_vacancy = get_sub_field('show_local_vacancy');
$show_day_in_the_life_of_a = get_sub_field('show_day_in_the_life_of_a');
$show_what_employers_want_transferable_skills = get_sub_field('show_what_employers_want_transferable_skills');
$show_timeline = get_sub_field('show_timeline');
?>
<!-- Start Loop -->
<?php if( $show_careers_information ): ?>
<?php endif; ?>
<!-- End Loop -->
<?php endwhile; ?>
<?php endif; ?>
<?php wp_reset_query(); ?>
<?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.