Skip Navigation

[Resolved] I need to duplicate postsa lot of times with some repeatable custom fields

This support ticket is created 6 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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 6 years, 1 month ago.

Assisted by: Waqar.

Author
Posts
#1159058

Tell us what you are trying to do? I'm developing a website, and I need to duplicate a post with inside some repeatable field group and some custom field, I use this plugin ( hidden link ) but when I clone a post, in the new draft post I see the repeatable fields empty

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1159409

Hi Aldo,

Thank you for contacting us and I'll be happy to assist.

The Toolset plugin stores the data in repeating field groups, in the form of post relationships ( ref: https://toolset.com/documentation/post-relationships/ ) and not as the custom field values.

This is the reason that the "Duplicate Post" plugin is able to clone the data in regular and repeating custom fields, but not the ones in the repeating field groups.

You can get in touch with the plugin's author and submit this requirement as a feature request.

Meanwhile, you can use the plugin's hooks ( ref: hidden link ) and Toolset's "Post Relationships API" ( ref: https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/ ), to create custom code, that can clone/duplicate the repeating fields group data as well.

For a personalized assistance around custom programming, you can also consider hiring a professional from our list of recommended contractors:
https://toolset.com/contractors/

regards,
Waqar