Support

Account

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.