Custom Fields
Re-Envisioned
Support Meta Box Builder Move Custom Field to another Group

  • Creator
    Topic
  • #19653
    SteveCo
    Participant

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Author
    Replies
  • #19659
    Long 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
    SteveCo
    Participant

    Thanks Long.

    #26829
    webdev
    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 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 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.