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>';
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.