Home › Forums › Backend Issues (wp-admin) › Populate a radio-button Custom Field in the Backend › Reply To: Populate a radio-button Custom Field in the Backend
Hi @jobo21,
Thanks for the follow up.
You should be able to apply the same logic to the Radio button field in the same way that it applies to the select field.
You will only need to loop through the array in your db and append the values to [‘choices’] of the $field settings.
I would recommend you debug the value of get_field_object(‘your_radio_field_name’) to get an idea of how the field settings are structured.
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.