Support

Account

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

  • I could be mistaken, you said

    The values come from an external software so I cannot change it.

    so I assumed it was not an acf field.

    If you are getting the value from somewhere else and storing it in an acf field then the solutions is similar, you must test for the value you want.

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