Support

Account

Home Forums ACF PRO Post object selects are empty Reply To: Post object selects are empty

  • @hkmakchui the issue with your filter is that it is running every time a query is done, and this includes queries that ACF runs to get the results for fields.

    You should have conditionals at the top of every pre_get_posts filter so that it only runs when you need it to.

    For example: If you don’t want it to run in the admin

    
    if (is_admin()) {
      return;
    }
    

    or if you only want it to run on the main query

    
    if (!$query->is_main_qieru()) {
      return;
    }