What’s the logic of radio buttons?
-
in PHP in functions.php file, I’m trying to display/hide the price depending on if a radio button is set to yes/no in a product. How can I see what the radio button is set to?
As like:
if (the_field( 'radio_button' ) -> yes) { $price = true; } else { $price = false; } if ($price) { ...Display Price... } else { ...Don't Display Price... }
Or just whatever, just a quick example to hopefully show what I mean.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘What’s the logic of radio buttons?’ is closed to new replies.