Support

Account

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 ) {
    
      } ?>