Support

Account

Home Forums Front-end Issues Radio Conditional; not working Reply To: Radio Conditional; not working

  • I ask because the code looks right, in ACF5.5 you can specify the return type. But now that I look at this it does not explain it either. So the question is, what are you getting?

    
    $type = get_field('business_price_type');
    // echo the value to test and see what you're getting
    echo $type;
    if ($type == 'price') {
      echo '<span class="ListingPrice">$' . 
            number_format($price, 0, '', ',') . '</span>';
    } elseif ($type == 'pur') {
      echo '<span class="ListingPrice">Price provided upon request</span>';
    }