Export / Import

Support MB Builder Export / ImportResolved

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #11124
    dewabalidewabali
    Participant

    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.

    #11129
    Anh TranAnh Tran
    Keymaster

    Hello,

    It's kind of impossible to revert the PHP code into MB Builder .dat file. Once you deleted the meta box in MB Builder, it's actually gone. If you want to edit, then please create it again.

    #11130
    dewabalidewabali
    Participant

    Anh, thanks for your clarification.
    one more question: how to get the .dat file, so I can save the file

    Thanks

    #11134
    Anh TranAnh Tran
    Keymaster

    In the all field groups screen, please select a field group and select Export from the dropdown, like this:

    https://i.imgur.com/0bm6TJ9.png

    #11135
    dewabalidewabali
    Participant

    Thanks Anh, found it now.
    Never thought the export to .dat file is there.
    I thought its on export section.

    #18345
    goldhatgoldhat
    Participant

    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?

    #18352
    Anh TranAnh Tran
    Keymaster

    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.

    #18800
    Nuno CruzNuno Cruz
    Participant

    Is there a way to export custom post types? or just the fields?

    #18804
    Long NguyenLong Nguyen
    Moderator

    Hi Nuno,

    WordPress supports to export the custom post type by going to Admin Dashboard -> Tools -> Export -> Post types

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.