Just renewing the request to be able to move fields from one group to another. So many times I’ve had to delete and recreate a bunch of fields (and reenter all the content) due to a client request or misunderstanding – it’s just painful.
Love the plugin, though, thank you so much!!! This is my favorite plugin of all time and I’m happy to have purchased the add-ons. I’d purchase this if it were an add-on too!
In regards to Davids request to be able to duplicate. Since the fieldgroups are basically posts you can actually use this plugin:
I’ve tried it myself on a fieldgroup containing repeaterfields and other fields with success so I think it’d work fine on any fieldgroup.
Perhaps this could be added to the documentation so that everyone and not just ppl finding their way here become aware of this 🙂
I have one group (Group_1) with 25 fields with prefix “tab1_” and i want make another tab with prefix “tab2”. If i do it in the same group i need duplicate all fields, drag them under new tab and replace new field name prefix. it’s not so difficult, but duplicating inside field group takes a lot of time 🙁
There described just 2 actions to achieve desired result:
1. Find IDs of groups you want to move fields between (From Group -> To Group)
SELECT * FROM wp_posts WHERE post_type="acf"
you’ll see all the field groups, so just remember 2 FromID and ToID
2. Find all fields of From Group
SELECT * FROM wp_postmeta WHERE meta_key LIKE "field_%" AND post_id=FromID
then just change post_id of appropriate fields to ToID and all these fields will be moved to To Group
The topic ‘Move fields from one field group to another’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2022 Advanced Custom Fields.