Home › Forums › ACF PRO › Post object selects are empty › Reply To: Post object selects are empty
For the post object field, render_field()
only include what has been already selected. This is a select2 field and population of the rest of the field depends on an AJAX request to get the values.
I would start by looking for a JavaScript error, or a PHP error that could be interfering with ACF returning values during the request.
To see PHP errors that happen during the request you need to turn on error logging https://codex.wordpress.org/WP_DEBUG. Basically, anything that creates unexpected output during the AJAX request will cause the request to fail and this could be why the choices are not being populated.
On the other hand it could be a JS error before the request that prevents it from happening.
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.