Home › Forums › General Issues › Adding an Image with a “Choice” field › Reply To: Adding an Image with a “Choice” field
I don’t think what you’re looking for is possible with a single field. I would probably do something like the following.
You would need your Yes/No field.
If the image can be different then you’d need an image field and a URL field. These would be conditional fields that only show if you’ve selected “yes” in the above field.
In the template you’d need to test the yes/no field and then display or not display the image and link base on whether it is yes or no.
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.