• Resolved datverse

    (@datverse)


    Hi,
    I create a Custom Post Type,
    I Create a Field “A” in a Group “A”
    I create a Field “B” in a Group “B”

    How can I move Field “B” to Group “A”?
    Anyway to do? Hardcode?
    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @datverse

    This feature will be available in the next major release (2.9).

    Cheers, Jory

    Thread Starter datverse

    (@datverse)

    Hi, thank for your reply

    Is there currently a way for me to change “Group” for a “Field”? Hardcode change on database, php code?

    Thanks

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @datverse

    A database change would do the trick yes.
    Alternatively you can simply remove the field from group A and add it to group B.

    Cheers, Jory

    Thread Starter datverse

    (@datverse)

    Hi,
    How about Field “X” in Group A have data in some “Records”. I remove it (delete) from Group A then re-create new Field “X” in Group B?
    All data will be still have or lost?
    Thanks

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @datverse

    Removing the field shouldn’t remove the existing metadata.
    However, creating a backup is always advisable if you are in doubt ??

    Cheers, Jory

    Thread Starter datverse

    (@datverse)

    Hi @keraweb
    I just did the test as discussed with you. Everything is very good. But must be noted: “The slug must be same”.

    In this case, If we want, how to delete all redundant metadata when deleting 1 Field?

    Thanks

    Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @datverse

    “The slug must be same”.

    Indeed, it will require the same slug to be used. After you added the field you can change it if you want.

    how to delete all redundant metadata when deleting 1 Field?

    What do you mean? If you need to remove metadata you can do so through the custom field editor of a post. There are no bulk actions available for this since any plugin can add metadata.
    You could also create various queries to remove unused meta keys.

    Cheers, Jory

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How change “Group” of a “Field”’ is closed to new replies.