title: How to list label value for checkboxes in ACF (advanced custom fields)
body: <p>I have a list of checkboxes (around 100+) and want to loop through to get the 'label' value without having to do the following 100+ items. </p>
  
  <pre><code>&lt;p&gt;Colors: &lt;?php the_field('colors'); ?&gt;&lt;/p&gt;
  </code></pre>
  
  <p>The checkbox fields are not set up as repeaters or group (see screenshot).</p>
  
  <p><a href="https://i.stack.imgur.com/LNRNJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LNRNJ.png" alt="enter image description here"></a> </p>
  
  <p>The code below works for ACF Version 4.4.12 but is not working for ACF Pro 5.6.10. </p>
  
  <pre><code>&lt;?php
  $groupID = '2893';  // Package Inclusions
  $package_inclusions1 = apply_filters('acf/field_group/get_fields', 
  array(), $groupID);
  
  foreach($package_inclusions1 as $k=&gt;$v) {
    $data = get_field($v['name']);
    if($data[0] == 'Yes') {
      echo '&lt;li class="package-inclusion"&gt;' . $v['label'] . '&lt;/li&gt;';
    }
  }
  ?&gt;
  </code></pre>
  
  <p>Apparently, <a href="https://support.advancedcustomfields.com/forums/topic/filter-acffield_groupget_fields-missing-in-acf-pro/" rel="nofollow noreferrer">The filter has been removed in ACF5 and was not replaced.</a></p>
  
  <p>Any solution to this? I've looked enough, couldn't find a solution. </p>
  
  <p><strong>Edit [solution]:</strong> 24 July 2018</p>
  
  <p>Asked this question to ACF Support and here's the solution they provided that works. </p>
  
  <p>"
  The acf/field_group/get_fields filter was removed in the Pro version and in its place the acf_get_fields() function was introduced. You can use this function like so:</p>
  
  <p>$fields = acf_get_fields($group_id); "</p>