Support

Account

Home Forums General Issues get_field() restores the site to current site when used Reply To: get_field() restores the site to current site when used

  • There is nothing in ACF that should be causing this, ACF never calls restore_current_blog(), at least not when getting a field value. The only time ACF does this is when doing an upgrade on multisite.

    I would start buy searching the code of all plugins and the theme to find places where restore_current_blog() is called. I would be looking for filters and actions that might be fired during the retrieval of the field value.