Passer la navigation

[Résolu] Custom field Image upload (allow multiple instance) issue with XML image import

This support ticket is created Il y a 3 years, 9 months. 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 -

Fuseau horaire du supporter : Asia/Hong_Kong (GMT+08:00)

Ce sujet contient 4 réponses, a 2 voix.

Dernière mise à jour par TomW5440 Il y a 3 years, 9 months.

Assisté par: Luo Yang.

Auteur
Publications
#2436501
3.png
2.png
1.png

Tell us what you are trying to do?
So I have a custom field for image upload set to 'Allow multiple instances of this field'. The trouble is when using WP all import for property images via XML. So my images in the feed are formatted like this -

<ImageURL>
lien caché|lien caché|lien caché|lien caché|lien caché|lien caché|lien caché|lien caché|lien caché|lien caché|lien caché|
</ImageURL>

And so using WP all import I'd need to enter {ImageURL[1]} into the Images custom field. The problem is that for each image the urls of ALL images are imported.

With WP all import there is a dedicated image section (image3) so I wonder if I can connect image CF to this somehow?

Not sure how to work around this so some guidance would be appreciated.

Thank you!

#2437933

Hello,

Toolset multiple instance custom image field is just a standard WordPress repeater field:
Same field slug, different field values.

You can follow WP all import document to setup your XML files, and import it:
lien caché

#2438677

Thank you this is helpful.
One further related question.. How can add value into a relationship field using via xml feed? Thank you!

Les nouveaux fils créés par Luo Yang et associés à celui-ci sont repris ci-dessous :

https://toolset.com/fr/forums/topic/how-can-add-value-into-a-relationship-field-using-via-xml-feed/

#2439261

I assume the original questions of this thread is resolved, according to our support policy, we prefer one ticket one question. For other new issues, please check the new thread here:
https://toolset.com/forums/topic/how-can-add-value-into-a-relationship-field-using-via-xml-feed/

#2439417

My issue is resolved now. Thank you!