Support

Account

Home Forums General Issues Hide section if fields are empty Reply To: Hide section if fields are empty

  • I am assuming by looking at your code that your using a group field. In this case you need to check the sub field values because the field will always be an array that is not empty.

    
    $feature = get_field('section_feature');
    if ($feature['headline']) {
      ...
    }