Support

Account

Home Forums Front-end Issues Render field only if value = "YES" Reply To: Render field only if value = "YES"

  • When I do that I get a syntax error.

    This is what I wrote

    <?php $value = get_field('doors'); ?>
    <?php if ($value == 'YES') ?>
    <div class="feature">With doors</div>
    <?php endif; ?>