Support

Account

Home Forums Backend Issues (wp-admin) Alter field output Reply To: Alter field output

  • I’m not familiar with ACF but, how would the above output ‘Call for Price’ I don’t see a check for anything in the if statement or an alternative (elseif, else) if there isn’t a numeric value entered. Is this a built in function?
    Sorry if this is simple, I might be dense, it is early here.
    But wouldn’t you need to do something like:

    
    $price = $row['service_price'];
    if( $price > 0 ){
        $price = '$' . $price;
    }
    else {
         $price = 'Call for Price';
    }