Home Forums Bug Reports Editor not loading local json of child-theme


Editor not loading local json of child-theme

  • Not sure if this is a bug since it’s using custom code but we’ve just discovered this issue while it was working before.

    We’ve created a theme created with ACF to deploy for our customers. Now we’ve added this code so that when we roll out changes to the parent theme we can sync the changes to the customer:

    // Sync jsons with child
    add_filter('acf/settings/load_json', 'parent_theme_field_groups');
    function parent_theme_field_groups($paths) {
      $path = get_template_directory().'/acf-json';
      $paths[] = $path;
      return $paths;

    However with our newest customer we can’t make child-theme specific changes to the fields anymore. What happens is it creates a perfect json duplicate in the acf-json folder in the child theme. Also the fields editor shows the right data, however if we take a look at the fields in the editor it gives the field labels and data of the json in the parent theme.
    If we remove the code mentioned above it shows us the right data from the child-theme. We didn’t have this issue with previous versions…

    WP version: 6.0
    ACF version: 5.12.2

  • The only thing I can think of here is that you have not created and acf-json folder in the child theme.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.