When using the Advanced Custom Fields plugin for WordPress,
Suppose I have a radio button field with possible choices:
o Apples o Bananas o Cranberries
How can I return each one of these options regardless of which one is selected?
Thanks everyone
When using the Advanced Custom Fields plugin for WordPress,
Suppose I have a radio button field with possible choices:
o Apples o Bananas o Cranberries
How can I return each one of these options regardless of which one is selected?
Thanks everyone
You must be logged in to post a comment.
Check out this page in order to discover your field key for your radio button: http://www.advancedcustomfields.com/docs/functions/get_field_object/
Next, insert this code where you are grabbing your field values:
This code will return your set of keys and values.
This only issue with this method is that it will not work if your radio button field is inside of a repeater field.