Home › Forums › Backend Issues (wp-admin) › Dynamically Load Select Choices with Functions › Reply To: Dynamically Load Select Choices with Functions
Most likely, the issue is that the function does not work at the time when you are using it in the functions.php file.
Can you check by debuging the value of get_waiting_lists()
in the same file as your field group code? Does it work there, or only in single.php?
If my suspicions are correct, you will need to use a filter to set the choices. If you take a look on the docs page, you will see an article which covers this exact query.
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.