title: Advanced Custom Fields radio button and if statement
body: <p>I am using ACF successfuly on my Wordpress site, but cannot get an if statement to work with a ACF radio button that I have created.</p>
  
  <p>Here is a grab from ACL of the radio button, as the code below that.</p>
  
  <p>Any guidance on what I'm missing here would be appreciated.</p>
  
  <p>Thanks in advance.</p>
  
  <p><a href="https://i.stack.imgur.com/kOuqb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kOuqb.png" alt="ACL"></a></p>
  
  <pre><code>&lt;?php if( get_field('event_main_link') == 'disable' ): ?&gt;
  
  
      xxxx
  &lt;div class="event-header-content"&gt;
  &lt;div class="event-header-button"&gt;
  &lt;?php the_field('event_button'); ?&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="clear"&gt;&lt;/div&gt;
  
  xxxx
  
  
  &lt;?php else : ?&gt;
  xx
  &lt;div class="event-header-content"&gt;
  &lt;h2 class="post-title"&gt;&lt;?php the_title(); ?&gt;&lt;/h2&gt;
  &lt;p&gt;&lt;?php the_field('event_header_blurb'); ?&gt;&lt;/p&gt;
  &lt;p&gt;&lt;?php the_field('event_header_date'); ?&gt;&lt;/p&gt;
  &lt;div class="event-header-button"&gt;
  &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_field('event_button'); ?&gt;&lt;/a&gt;
  &lt;/div&gt;&lt;/div&gt;
                              &lt;div class="clear"&gt;&lt;/div&gt;
  
  xx
  &lt;?php endif; ?&gt;
  </code></pre>