Home › Forums › ACF PRO › Show content if checkbox is checked › Reply To: Show content if checkbox is checked
Hi John
The code below must be run when the checkbox option is set to “check”.
<?php
// Get repeater value
$repeater = get_field('options');
// Obtain list of columns
foreach ($repeater as $key => $row) {
$the_logo[$key] = $row['logo'];
$the_bonus[$key] = $row['bonus'];
$the_link[$key] = $row['link'];
}
array_multisort( $repeater, SORT_DESC );
foreach( $repeater as $row ) {
} ?>
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.