Skip Navigation

[Resolved] Clone repeatable field groups when cloning main post

This support ticket is created 3 years, 1 month ago. 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.

This topic contains 3 replies, has 2 voices.

Last updated by Adrian Robbins 3 years, 1 month ago.

Author
Posts
#2194719

Hi Nigel

We have a Toolset CPT called Bookings, and within this we have a repeatable field group for 'itinerary days'.

On a lot of bookings, the itinerary days are exactly the same, and therefore we want to be able to clone the Booking and have it duplicate the repeatable field group, which will save us a huge amount of time when inputting all the bookings.

We are using the Yoast Duplicate Post plugin 🙂

On the 27 August this year, you replied to another support post saying a code solution was required and you'd very kindly created the sample code.

Would it please be possible to have a copy of this code?

This link to the support thread - https://toolset.com/fr/forums/topic/repeating-field-group-not-copied-when-i-duplicated-a-post/

Many thanks.

Kind regards
Ade

#2194793

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

#2194899

Hi Nigel

Many thanks for sending the custom code link so quickly 🙂

On the Bookings CPT we have a 'many to many' relationship for the Hotels CPT, which we didn't want cloned, so the custom code is perfect for our requirements, which was just to clone the Bookings CPT with the repeatable field group for the Tour Days.

Kind regards
Ade

#2194961

My issue is resolved now. Thank you!