I have a field group in the backend and a custom field (type: radio buttons) which has some options at this time.
But now I want to automatically reset the radio button options and populate them with an Select-Array from the WP-Database.
I thought this might be the topic, but it seems to be something else.
Does anyone have an idea? Thanks!
Could anybody help me please?
I would be very glad.
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.