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

inter-site import/export a.k.a. site-independant serialization #18

Open
drzraf opened this issue Oct 21, 2019 · 2 comments
Open

inter-site import/export a.k.a. site-independant serialization #18

drzraf opened this issue Oct 21, 2019 · 2 comments

Comments

@drzraf
Copy link
Contributor

drzraf commented Oct 21, 2019

ACF template helps me translating complex flexible field contents from one site to another one.

Describe the solution you'd like
I'd like to be able to export/import a template from one WordPress instance to another.
It'd only include attached images if importer was told so at the time of import.

Describe alternatives you've considered
Since ACF templates are custom post types. I thought standard tools would support it out of the box.

  • export : Exporting acf-templates as a WXR file works (although see below about serialization).
  • import: Assuming an "import plugin" is enabled (I tried rmccue's WordPress Importer v2), it also works

This results in a new ACF template :

  1. Being imported and created
  2. Being listed
  3. Having its correct meta attached
  4. Whic appears as empty in the template editor UI.

Additional context
Templates are mostly stored in a _flex_layout_data which is serialized.
But "here is the point" : the serialized form is not "installation-independant". It's probably related to why imported templates are shown as empty.

@MarieComet
Copy link
Owner

I'm sorry but I don't understand what's you mean by "the serialized form is not "installation-independant""

@drzraf
Copy link
Contributor Author

drzraf commented Oct 22, 2019

The storage of an ACF template keeps referencing other elements of the website. As such it can't be exported/imported as-is into another website that would want to make use of this template.

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

No branches or pull requests

2 participants