Support

Account

Home Forums Backend Issues (wp-admin) Hide Div Filed Reply To: Hide Div Filed

  • 
    if (get_sub_field('field2')) {
      ?><div class="class2"><?php the_sub_field('field2'); ?></div><?php 
    } elseif (get_sub_field('field1')) {
      ?><div class="class1"><?php the_sub_field('field1'); ?></div><?php 
    }