Support

Account

Home Forums Add-ons Flexible Content Field Conditional value display Reply To: Conditional value display

  • you need to use get_sub_field() to check a value. get_sub_field() returns a value and the_sub_field() echos the value.

    
    if (get_sub_field('mysubfield')) {
      ?>
        <div class="mysubfield"><?php the_sub_field('mysubfield'); ?></div>
      <?php 
    }