Saltar navegación

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

This support ticket is created 3 years, 9 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
- 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 -

Zona horaria del colaborador: Asia/Hong_Kong (GMT+08:00)

Este tema contiene 4 respuestas, tiene 2 mensajes.

Última actualización por TomW5440 3 years, 9 months ago.

Asistido por: Luo Yang.

Autor
Mensajes
#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>
enlace oculto|enlace oculto|enlace oculto|enlace oculto|enlace oculto|enlace oculto|enlace oculto|enlace oculto|enlace oculto|enlace oculto|enlace oculto|
</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:
enlace oculto

#2438677

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

Los hilos nuevos creados por Luo Yang y vinculados a este se encuentran a continuación:

https://toolset.com/es/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!