Support

Account

Home Forums General Issues Local Json in plugins + acf_get_field_group = can't find fields or group Reply To: Local Json in plugins + acf_get_field_group = can't find fields or group

  • Somehow I missed the part about your group not being listed.

    I’ve run into issues with the ACF caching of field groups in the paste. Basically, if you add field groups or fields after they have been added to the changes you make will have no effect.

    The way that I resolved this was to have my code clear the cached value that my code caused to be set. For example I used acf_get_field_groups(). This caused all the field groups to be cached. Then I added a new field group and the new field group never appeared. What I needed to do was to clear the cached values after I called acf_get_field_groups().

    My suggestion is to look at the functions in the acf code that you’re calling and see if ACF is caching any values and if it is to clear those cached values right after you call the acf function.

    Hope that helps.