title: Advanced Custom Field True/False field not working
body: <pre><code>&lt;?php if( have_rows('team_members') ): ?&gt;
      &lt;?php while( have_rows('team_members') ): the_row(); ?&gt;
          &lt;div class="team-member-section"&gt;   
              &lt;div class="container"&gt;
                  &lt;?php if( get_row_layout() == 'team_members' ): ?&gt;
                      &lt;section class="team-member-section"&gt;                                   
                          &lt;?php 
                              $team_title = get_sub_field('team_title');
                              $team_member = get_sub_field('team_member');
                              $description = get_sub_field('description');
                          ?&gt;
                          &lt;div class="team-title"&gt;
                              &lt;?php echo $team_title; ?&gt;
                          &lt;/div&gt;
                           &lt;?php if( $team_member ): ?&gt;
                              &lt;?php if ( get_field('has_description') == 'yes') : ?&gt;
                                  &lt;?php echo 'has_description'; ?&gt;
                              &lt;?php  else : ?&gt;
                                  &lt;?php echo 'has_no_description'; ?&gt;
                              &lt;?php endif; ?&gt;  
                          &lt;?php endif; ?&gt;
                      &lt;/section&gt;
                  &lt;?php endif; ?&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;?php endwhile; ?&gt;
  &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>It displays only the value "has_no_description", why is my true/false field not working and how to make it work so both situations will be displayed.</p>
  
  <p><a href="https://i.stack.imgur.com/wgdhJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wgdhJ.jpg" alt="enter image description here"></a></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <pre><code>&lt;?php if( have_rows('team_members') ): ?&gt;
  &lt;?php while( have_rows('team_members') ): the_row(); ?&gt;
      &lt;div class="team-member-section"&gt;   
          &lt;div class="container"&gt;
              &lt;?php if( get_row_layout() == 'team_members' ): ?&gt;
                  &lt;section class="team-member-section"&gt;                                   
                      &lt;?php 
                          $team_title = get_sub_field('team_title');
                          $team_member = get_sub_field('team_member');
                          $description = get_sub_field('description');
                      ?&gt;
                      &lt;div class="team-title"&gt;
                          &lt;?php echo $team_title; ?&gt;
                      &lt;/div&gt;
                       &lt;?php if( $team_member ): ?&gt;
                          &lt;?php if ( get_field('has_description') ) : ?&gt;
  
                          &lt;?php foreach( $team_member as $post): ?&gt;
                              &lt;?php setup_postdata($post); ?&gt;
                                  &lt;div class="col-sm-4"&gt;
                                      &lt;div class="team-member"&gt;
                                          &lt;div class="member-img"&gt;
                                              &lt;?php the_post_thumbnail(); ?&gt;
                                          &lt;/div&gt;
                                          &lt;h4&gt;&lt;?php the_title(); ?&gt;&lt;/h4&gt;
                                          &lt;?php the_content(); ?&gt;
                                          &lt;?php echo "Has description"; ?&gt;
                                          &lt;?php $overlay_text = get_field('overlay_text'); ?&gt;
  
                                          &lt;?php if($overlay_text != ''): ?&gt;
                                              &lt;div class="overlay-text"&gt;
                                                  &lt;p&gt;&lt;?php echo $overlay_text; ?&gt;&lt;/p&gt;
                                              &lt;/div&gt;
                                          &lt;?php endif; ?&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
                              &lt;?php wp_reset_postdata(); ?&gt;
                          &lt;?php endforeach; ?&gt;
                          &lt;?php  else : ?&gt;
                          &lt;?php foreach( $team_member as $post): ?&gt;
                              &lt;?php setup_postdata($post); ?&gt;
                                  &lt;div class="col-sm-4"&gt;
                                      &lt;div class="team-member"&gt;
                                          &lt;div class="member-img"&gt;
                                              &lt;?php the_post_thumbnail(); ?&gt;
                                          &lt;/div&gt;
                                          &lt;h4&gt;&lt;?php the_title(); ?&gt;&lt;/h4&gt;
                                          &lt;?php the_content(); ?&gt;
                                          &lt;?php echo "Doesn not have description"; ?&gt;
                                          &lt;?php $overlay_text = get_field('overlay_text'); ?&gt;
  
                                          &lt;?php if($overlay_text != ''): ?&gt;
                                              &lt;div class="overlay-text"&gt;
                                                  &lt;p&gt;&lt;?php echo $overlay_text; ?&gt;&lt;/p&gt;
                                              &lt;/div&gt;
                                          &lt;?php endif; ?&gt;
                                      &lt;/div&gt;
                                  &lt;/div&gt;
  
  
                              &lt;?php wp_reset_postdata(); ?&gt;
                           &lt;?php endforeach; ?&gt;
  
                          &lt;?php endif; ?&gt;  
                      &lt;?php endif; ?&gt;
                  &lt;/section&gt;
              &lt;?php endif; ?&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;?php endwhile; ?&gt;
  </code></pre>
  
  
  
  <p>I posted my entire code. 
  I think the issue here is that the field 'has_description' is showed only on "Team" Custom Post Type and that's why the field is returning null, but I am not sure. Can someone make it work?</p>