Home › Forums › Add-ons › Options Page › Dynamically populate a select subfield in a repeater field › Reply To: Dynamically populate a select subfield in a repeater field
Hi @Tim Triplett
The issue here is most likely that your filter is not running. Have you added some debug code to your function to make sure it is running?
Perhaps also try using the sub field’s key
instead of it’s name
when adding the function to the filter like so:
add_filter(‘acf/load_field/key=field_123’, ‘my_acf_load_field’);
Please note, the filter should use the name or key of the SUB FIELD, not the repeater field.
Thanks
E
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.