Support » Fixing WordPress » Display image only if certain Radio Button fields are selected

  • I’m using the Advanced Custom Field (ACF) plugin and have a Radio Button field called “Virtual”. This field has 3 options: “Virtual”, “Physical”, and “Virtual & Physical”.

    I need to be able to output an image only if a user selects “Virtual” or “Virtual & Physical”.

    There is nothing in the ACF documentation on how to do this (there isn’t Radio Buttons at all in their docs, actually) and I can’t find anything that works in Google searches. I have tried many different code snippets but nothing is working right.

    What can I add to my page template to get an image to display only if one of those two options is selected? Nothing will be displayed if “Physical” is displayed.


  • The topic ‘Display image only if certain Radio Button fields are selected’ is closed to new replies.