Skip Navigation

[Resuelto] Import repeatable groups

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

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 hace 6 años, 2 meses. 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.

Hoy no hay técnicos de soporte disponibles en el foro Juego de herramientas. Siéntase libre de enviar sus tiques y les daremos trámite tan pronto como estemos disponibles en línea. Gracias por su comprensión.

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)

Este tema contiene 2 respuestas, tiene 2 mensajes.

Última actualización por Twig hace 6 años, 2 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#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.