Skip Navigation

[Résolu] Automate importing content from csv with post relationships

This support ticket is created Il y a 6 années et 7 mois. 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

Ce sujet contient 1 réponse, a 2 voix.

Dernière mise à jour par Christian Cox Il y a 6 années et 7 mois.

Assisté par: Christian Cox.

Auteur
Publications
#867541
Manage Imports ‹ Van de Vanenblikhoeve — WordPress - Google Chrome.jpg
Export  Import ‹ Van de Vanenblikhoeve — WordPress - Google Chrome_2.jpg

Hi,

I follow the steps from https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/, but instead of uploading a csv using Toolset, I use WP All Import to import the child posts. See screenshot. This works great, because associations are loaded perfectly. See screenshot....

I will automate the import with WP All Import... but then I still must manually press the "Start Import" button to create the associations.

Is there a way to automate this with a cronjob or something else?

Thanks for your great support!
Martijn Hoogma

#868122

Hi, we recently added an API method that you can call to import association information from the postmeta of a child post:
https://toolset.com/documentation/user-guides/importing-content-from-csv-with-post-relationships/#toolset_import_associations_of_child-child_id

Will this work for your site?