Home Forums General Issues How to programatically generate field keys?


How to programatically generate field keys?

  • I have a WordPress installation with a couple thousand posts that were exported from another site with a custom script that only captured some post meta. ACF field keys were not carried over.

    All of the fields and their data look ok in the wp-admin, even repeaters, but on the front-end certain things don’t load correctly. Pressing “update” on the post in the wp-admin fixes this because it adds all the correct field keys to the post meta.

    Is it possible for me to trigger this programmatically? It would be painful to have to manually click “update” on ~3000 posts.

    Thank you.

Viewing 1 post (of 1 total)

The topic ‘How to programatically generate field keys?’ is closed to new replies.