I am using feeds to import a heavily customised wordpress site into drupal using xpath and a custom xml file. All is going well until I try to import multiple images into a node.
The image field is a multi value field (not multiple different image fields)
Only the first image is imported the rest are ignored.
When I have xpath debugging on it correctly shows multiple image URI's and their titles.
Is there a way using feeds and xpath to import multiple images into a node?
This is an example of one item from the feed
<root> <item> <wordpress_id>85672</wordpress_id> <title>.....</title> <content>.....</content> <created>2017-03-17 10:13:24</created> <custom_fields> <url type="Website">......</url> <url type="Website2">.....</url> </custom_fields> <attachments> <images> <item> <ID>85671</ID> <post_author>0</post_author> <post_date>2017-03-08 18:00:00</post_date> <post_title>.....</post_title> <uri>.....</uri> </item> <item> <ID>85671</ID> <post_author>0</post_author> <post_date>2017-03-08 18:00:00</post_date> <post_title>.....</post_title> <uri>......</uri> </item> </images> </attachments> </item> </root>
The post title and uri from the attachments are the two fields I am trying to map to the node image type
for my xpath I am referencing them using...
image_title => attachments/images/item/post_title image_source => attachments/images/item/uri
and in my mapping I am using...
image_title (image_title) => Image: Title (field_image:title) image_source (image_source) => Image: URI (field_image:uri)
in the section I have no trouble mapping website and website2 to to a multi value link field so I am not sure why the image field should be any different.
edit: added xml snippet and mappings and further explanation