Support

Account

Home › Forums › General Issues › Check for a specific select sub-field value › Reply To: Check for a specific select sub-field value

  • <?php if ( have_rows( 'property_banners' ) ) : ?>
        <?php while ( have_rows( 'property_banners' ) ) : the_row(); ?>
            <?php if (get_sub_field( 'status_1' ) == 'Sold') {
          echo "Hi";
    } ?>
        <?php endwhile; ?>
    <?php endif; ?>

    Works. sold needed to be Sold