Support Forum
Support › Meta Box Builder › Export / ImportResolved
Thanks for the nice plugin.
I found there is export tab, but it's only copy and paste the php code, meanwhile the import only allow .dat file.
The question is how to make the .dat file, because I already delete the metabox and already make it as only php file. Now I want to edit the metabox.
Please help.
Hello,
It's kind of impossible to revert the PHP code into Meta Box Builder .dat file. Once you deleted the meta box in Meta Box Builder, it's actually gone. If you want to edit, then please create it again.
Anh, thanks for your clarification.
one more question: how to get the .dat file, so I can save the file
Thanks
In the all field groups screen, please select a field group and select Export from the dropdown, like this:
Thanks Anh, found it now.
Never thought the export to .dat file is there.
I thought its on export section.
The export format is .dat? That sounds like a Windows OS file type. Why not use JSON the way ACF does? Everybody is familiar with JSON, there is such universal support for it, and there is lots of option to exchange JSON/PHP, a dev might for instance create some automation to edit their JSON definitions if their the same field group across multiple sites and need to update them. Is the .dat format workable in this manner?
Hi,
Previously, we use serialized data to store the data (just like WP do for all the options and post/term/user meta). So we use the .dat extension, which simply means "data". You can convert the data between PHP/.dat easily using serialize/unserialize functions. There's no difference between that and json_encode/json_decode.
Is there a way to export custom post types? or just the fields?
Hi Nuno,
WordPress supports to export the custom post type by going to Admin Dashboard -> Tools -> Export -> Post types