black friday sale
  • Creator
    Topic
  • #11124
    Resolved dewabali
    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.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Author
    Replies
  • #11129
    Anh Tran
    Keymaster

    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.

    #11130
    dewabali
    Participant

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

    Thanks

    #11134
    Anh Tran
    Keymaster

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

    View post on imgur.com

    #11135
    dewabali
    Participant

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

    #18345
    goldhat
    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 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 Cruz
    Participant

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

    #18804
    Long Nguyen
    Moderator

    Hi Nuno,

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

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