Skip Navigation

[Resolved] Import repeatable groups

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to import hundreds of entries in a repeating field group.

Solution: Under the hood, RFG are actually posts in a one-to-many relationship, where the parent is the post containing the field group and each field group row is a child. The slug of the relationship is identical to the slug of the RFG. With that in mind, you can use this guide to create a CSV file containing the relationship information as postmeta values. Use a CSV importer to import this information, then use the Toolset Import tool to import the post relationships.

Relevant Documentation:
https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/

This support ticket is created 6 years, 3 months 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Twig 6 years, 3 months ago.

Assisted by: Christian Cox.

Author
Posts
#1113866

Thanks for the info. Related question - I have a lot of RFG info to import (around 200 entries) and I'd rather not do it manually. In the postmeta table, I can see the RFG posts (as a custom post type) but I can't see how they get related to the parent post ( the page that contains the RFG).

How are these connected, and how could I import a bunch of new RFG options directly into the DB?

Thanks

#1113867

In the recently updated post relationships system, posts are no longer related directly by postmeta information. There are separate Toolset tables that manage post relationships. Under the hood, RFG are actually posts in a one-to-many relationship, where the parent is the post containing the field group and each field group row is a child. The slug of the relationship is identical to the slug of the RFG. With that in mind, you can use this guide to create a CSV file containing the relationship information as postmeta values. Use a CSV importer to import this information, then use the Toolset Import tool to import the post relationships. https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/

#1113870

I ended up adding them manually but this information is great for future reference. Thank you.