[Résolu] Duplicate custom post with Custom Fields Group
This support ticket is created Il y a 1 an et 8 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I have a custom post type 'Course' and custom field group 'Materials'; 'Materials' is the repeatable group to the custom posts 'course'. How can I duplicate the custom post course with all custom field group content together?
As far as I can see if I'm not wrong the plugin "Duplicate page" does not offer any hook.
Internally, the repeating field group is managed as one-to-many post relationship. So, all entries you add to repeating field group will be added as child post and parent post will be to which you attached and set your repeating field group to display.
For instance, if you have post type "Students" and you added repeating field group namely "Skills" having fields (skill name, skill description, skill level) and set this repeating field group to display on "Student" post type. Then there will be one-to-many post relationship between post type "student" and "skills" (repeating field group slug will be treated as post type automatically).