• Resolved Martin

    (@martinpwph)


    Hi,

    I’m testing the free plugin at the moment before purchasing for final site setup. But I’m having issues with importing images.

    When I drag the image across it shows: {residential[1]/objects[1]/img[8]/@modTime}

    The images in question looks like:

    <img modTime="2022-08-08-12:15:49" id="g" recordId="8257" title="" url="https://agentboxcdn.com.au/clients-data/22298/public_html/media/lt/54/54P2120/165992495051391575-rsd.jpg" format="jpg"/>

    How do I format it properly to pull the images? Tried a number of different ways but none have worked yet.

    Looks like it’s using modtime for the image link.

    • This topic was modified 3 years, 9 months ago by Martin.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @martinpwph

    The @ in {residential[1]/objects[1]/img[8]/@modTime} is indicating which attribute value to grab, in this case, modTime.

    If you change this to {residential[1]/objects[1]/img[8]/@url} it will target https://agentboxcdn.com.au/clients-data/22298/public_html/media/lt/54/54P2120/165992495051391575-rsd.jpg

    Hope this helped clear things up.

    Plugin Author WP All Import

    (@wpallimport)

    Hey @martinpwph,

    Please try using this XPath:

    {residential[1]/objects[1]/img/@url}

    That should output a comma-delimited list of all of the image URLs.

    Let me know how it goes.

    Plugin Author WP All Import

    (@wpallimport)

    Hi @martinpwph,

    This thread has been inactive for a while now, so I’m going to go ahead and mark it as resolved. Please open a new topic if you have any other questions.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Images from Agentbox xml’ is closed to new replies.