Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export of buddyform with ACF-groups #752

Open
mchobbel opened this issue Jun 28, 2022 · 0 comments
Open

Export of buddyform with ACF-groups #752

mchobbel opened this issue Jun 28, 2022 · 0 comments

Comments

@mchobbel
Copy link

mchobbel commented Jun 28, 2022

It is a hassle to migrate a Buddyform with ACF-groups to a different WP-install. The process goes like this:

  1. On WP-install 1 goto Buddyforms and export the BuddyForm resulting in Downloads/BuddyFormsExport.json

  2. On WP-install 1 goto ACF tools and export all ACF-groups resulting in Downloads/acf-export.json

  3. On WP-install 2 goto ACF-tools and import the file acf-export.json

  4. On WP-install 2 goto BuddyForms and import the file BuddyFormsExport.json

  5. Now the BuddyForms is broken! It has lost the reference to the ACF-group. So you have to fix those references by editing the Buddyform and selecting the correct ACF-group in each ACF-group-field.

My idea to solve this is: the BuddyFormsExport should use the ACF-key as a reference not the Post-id.

Note 1 In BuddyForms.json the ACF-group is referenced as "acf_group": "3249". This number is the table-row-id of wp_posts but this ID does not survive ACF-export+import (steps 2+3). After step 3 the ACF-group has received a new wp_post-ID (not 3249 )

Note 2 In the attached acf-export.json you can see "key": "group_5fb6c91205891". This is the proper ACF identifier which is kept persistent after ACF-export+import. The BuddyForms export should contain that key !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant