Support

Account

Home Forums Front-end Issues ACF Select Field IF a or b or d Reply To: ACF Select Field IF a or b or d

  • You either need to write out all of the ORs or use in array

    
    // if w/ ||s
    if ($statusofsale_value == 'available' || $statusofsale_value == 'underoffer' || $statusofsale_value == 'reserved') {
    

    OR

    
    / if w/in_array();
    if (in_array($statusofsale_value , array('available', 'underoffer', 'reserved'))) {