Skip Navigation

[Resolved] Import multiple fields in repeatable field group

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

Problem: I would like to know how to import content in a repeatable field group (RFG).

Solution: I don't have any documentation available for importing repeatable field groups (RFGs) specifically, but in the database an RFG is treated like a child post in a one-to-many relationship. The main post is the parent, and each RFG is a child post. The child post type matches the RFG slug, and the post relationship slug also matches the RFG slug.

Relevant Documentation:
https://toolset.com/documentation/user-guides/how-to-import-content-into-wordpress-using-csv/how-to-import-data-from-a-csv-file-using-the-wp-all-import-toolset-types-add-on-plugin/post-relationships/
https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/

This support ticket is created 6 years, 2 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 4 replies, has 2 voices.

Last updated by Bob 6 years, 2 months ago.

Assisted by: Christian Cox.

Author
Posts
#1105395

Bob

I would like to add data from quite a large list of 400 users.

For example, there's the 'Education' property:

In our list person A might have attended 3 educations, person B, 1 education and person C, zero.
So data differs. Of course I can make 10 fixed CPF's to accommodate all potential educations and courses attended, which might result in the bulk not being used, only to take up space in the backend.

What I would like is a repeatable field group in which one can add educations on the go. This is possible of course, but when it comes to the import of a csv how would I manage Toolset knowing "hey, this is a data field with multiple items, so generate additional fields on the fly, as many as needed".

Hope this makes sense 🙂

#1105617

Hi, yes it makes sense. I don't have any documentation available for importing repeatable field groups (RFGs) specifically, but in the database an RFG is treated like a child post in a one-to-many relationship. The main post is the parent, and each RFG is a child post. The child post type matches the RFG slug, and the post relationship slug also matches the RFG slug. So with that in mind, you can try following this guide:
https://toolset.com/documentation/user-guides/how-to-import-content-into-wordpress-using-csv/how-to-import-data-from-a-csv-file-using-the-wp-all-import-toolset-types-add-on-plugin/post-relationships/
Or if you're using a different import tool:
https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/

#1111449

Bob

Hi Christian,

Thanks for your reply. Sorry I didn't get back to you earlier.
I think things can be accomplished with your guidelines, but I found ACF to play nice with automated imports right out of the box. So I'll be rebuilding my Custom Fields to ACF.

Thanks!

#1111674

Thanks for the update.

#1114337

Bob

My issue is resolved now. Thank you!