Move Custom Field to another Group

Support MB Builder Move Custom Field to another GroupResolved

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #19653
    SteveCoSteveCo
    Participant

    Can I move a custom field to another group in the WordPress Admin GUI?

    #19659
    Long NguyenLong Nguyen
    Moderator

    Hi,

    In the Builder, it is impossible. By coding, you can easily generate the code of the Field Group and copy the code which created the field and paste to other places as you want. I also note this case and discuss with the developer team to support move/copy a field to other Field Groups.

    #19668
    SteveCoSteveCo
    Participant

    Thanks Long.

    #26829
    webdevwebdev
    Participant

    I agree this would be really useful.
    In the meantime, to move fields that already have data into new groups, I'd just like to check.
    Will this process ensure no data is lost?

    • create new custom field with same field type, settings and id inside the group
    • remove old field outside the group
    #26834
    Long NguyenLong Nguyen
    Moderator

    Hi webdev,

    Do you mean the field type group?
    https://metabox.io/plugins/meta-box-group/

    The data will be lost because the field ID is store in the database as a meta key. When you create a new field in a group field, the meta key is group ID so you have to add the field value again.

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