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
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!
Accordions are a great way to group related information while allowing users to interactively show and hide content. In this video, Damon Cook goes in-depth on how to create an accessible accordion block using ACF PRO’s Repeater field.https://t.co/RXT0g25akN— Advanced Custom Fields (@wp_acf) March 2, 2023
© 2023 Advanced Custom Fields.