title: WordPress Advanced Custom Fields Get value from Checkbox Within Repeater
body: <p>I can't figure out how in the world to get the value of a checkbox entered in a repeater field. There is only one choice. Basically if the user ticks the checkbox it should output a class.</p>
  
  <p>In the code example I don't have the value in the class yet because I am just trying to get it to print something! arg. </p>
  
  <p>Thanks for any and all help, I appreciate it!</p>
  
  <pre><code>&lt;?php if( have_rows( 'milestone_module' ) ) : ?&gt;
  
  &lt;section id="tao-timeline"&gt;
  
      &lt;?php 
  
          while( have_rows( 'milestone_module' ) ) : the_row(); 
          // Vars
          $milestone_module_date = get_sub_field( 'milestone_module_date' );
          $milestone_module_copy = get_sub_field( 'milestone_module_copy' );
          $field = get_field_object('milestone_long_date');
          $value = get_field('milestone_long_date');
          $label = $field['choices'][ $value ];
      ?&gt;
  
      &lt;div class="tao-timeline-block"&gt;
          &lt;?php if( $milestone_module_date ) : ?&gt;
              &lt;span class="tao-timeline-date"&gt;
                  &lt;?php echo $label; ?&gt;
                  &lt;?php echo $milestone_module_date; ?&gt;
              &lt;/span&gt;&lt;!--/.tao-timeline-date--&gt;
          &lt;?php endif; ?&gt;
  
          &lt;?php if( $milestone_module_copy ) : ?&gt;
              &lt;div class="tao-timeline-content"&gt;
                  &lt;?php echo $milestone_module_copy; ?&gt;
              &lt;/div&gt;&lt;!--/.tao-timeline-content--&gt;
          &lt;?php endif; ?&gt;
  
      &lt;/div&gt;&lt;!--/.tao-timeline-block--&gt;
  
      &lt;?php endwhile; wp_reset_postdata(); ?&gt;
  
  &lt;/section&gt;&lt;!--/#tao-timeline--&gt;
  
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>Updated code for true/false, still not working... </p>
  
  <pre><code>&lt;?php if( have_rows( 'milestone_module' ) ) : ?&gt;
  
                          &lt;section id="tao-timeline"&gt;
  
                              &lt;?php 
  
                                  while( have_rows( 'milestone_module' ) ) : the_row(); 
                                  // Vars
                                  $milestone_module_date = get_sub_field( 'milestone_module_date' );
                                  $milestone_module_copy = get_sub_field( 'milestone_module_copy' );
                              ?&gt;
  
                              &lt;div class="tao-timeline-block"&gt;
                                  &lt;?php if( get_field('milestone_long_date') ) { ?&gt;
                                      &lt;span class="tao-timeline-date long-date"&gt;
                                          &lt;?php echo $milestone_module_date; ?&gt;
                                      &lt;/span&gt;&lt;!--/.tao-timeline-date--&gt;
                                  &lt;?php } else { ?&gt;
                                      &lt;span class="tao-timeline-date"&gt;
                                          &lt;?php echo $milestone_module_date; ?&gt;
                                      &lt;/span&gt;&lt;!--/.tao-timeline-date--&gt;
                                  &lt;?php } ?&gt;
  
                                  &lt;?php if( $milestone_module_copy ) : ?&gt;
                                      &lt;div class="tao-timeline-content"&gt;
                                          &lt;?php echo $milestone_module_copy; ?&gt;
                                      &lt;/div&gt;&lt;!--/.tao-timeline-content--&gt;
                                  &lt;?php endif; ?&gt;
  
                              &lt;/div&gt;&lt;!--/.tao-timeline-block--&gt;
  
                              &lt;?php endwhile; wp_reset_postdata(); ?&gt;
  
                          &lt;/section&gt;&lt;!--/#tao-timeline--&gt;
  
                      &lt;?php endif; ?&gt;
  </code></pre>