• Resolved alvarofranz

    (@alvarofranz)


    Hi,

    I am using ACF Pro 5.12.3 and I would like to generate new JSON files for a site because their JSON files are messed up.

    Why am I saying they are they messed up?

    It looks like some values live in the database and are not reflected in the JSON files, because when I use the Admin UI to edit a field group, then the changed json file adds the new field but at the same time deletes other parts of the files, for fields that I did not delete in the Admin UI.

    What I need is to regenerate all the JSON files using what ACF loads as “true information”. The site works fine, no missing fields. I want to generate a clean copy of all JSON files that represent the REAL state of the Fields group and delete the old ones.

    Is that possible?

    I used this script (https://www.awesomeacf.com/forcing-acf-field-group-json-file-generation-for-all-field-groups/) but it changes many things in my files… that don’t make sense. For example:

    It changed:

    "key": "field_62840634eb06a",
    "label": "Accordion Posts Blocks",
    "name": "accordion_posts_blocks",
    "type": "clone",

    To:

    "key": "field_62840634eb06a_field_5defc00b65ead",
    "label": "Posts",
    "name": "posts",
    "type": "repeater",

    I’m confused about where ACF is loading the information from?

    Does it first look into the db and then into the files, does it look into both and merge the information? Why could this be happening?

Viewing 1 replies (of 1 total)
  • Hi @alvarofranz

    ACF Support Team here. This forum is generally used by ACF users helping each other out.

    However, we would love to continue investigating and troubleshooting this issue, please can you create a ticket using our support form and we can look into it further.

Viewing 1 replies (of 1 total)
  • The topic ‘Regenerate all currently used ACF fileds into new JSON files’ is closed to new replies.