Title: Changing the &#8220;ImageURL&#8221; structure
Last modified: August 6, 2020

---

# Changing the “ImageURL” structure

 *  Resolved [doyuk](https://wordpress.org/support/users/doyuk/)
 * (@doyuk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/changing-the-structure-2/)
 * Hello,
    I created xml for a non-wordpress site. Photos are created as “<ImageURL
   >”. How can I change it to “<ImageURL1>, <ImageURL2>”?
 * [https://monosnap.com/file/DSPzE7Ub4GFqsDkXayvkU0Lxhi9nkH](https://monosnap.com/file/DSPzE7Ub4GFqsDkXayvkU0Lxhi9nkH)
   
   [https://monosnap.com/file/yaoyxoerv0D4UdfjxytiU3d4nshSxw](https://monosnap.com/file/yaoyxoerv0D4UdfjxytiU3d4nshSxw)
 * Current state:
 *     ```
       <ImageURL>a.jpg</ImageURL>
       <ImageURL>b.jpg</ImageURL>
       <ImageURL>c.jpg</ImageURL>
       ```
   
 * I want to do:
 *     ```
       <ImageURL1>a.jpg</ImageURL>
       <ImageURL2>b.jpg</ImageURL>
       <ImageURL3>c.jpg</ImageURL>
       ```
   
    -  This topic was modified 6 years, 1 month ago by [doyuk](https://wordpress.org/support/users/doyuk/).
    -  This topic was modified 6 years, 1 month ago by [doyuk](https://wordpress.org/support/users/doyuk/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fchanging-the-structure-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/changing-the-structure-2/#post-13233771)
 * HI [@doyuk](https://wordpress.org/support/users/doyuk/),
 * > How can I change it to “<ImageURL1>, <ImageURL2>”?
 * You would have to write custom PHP to output the tags that way. There’s an example
   here that you can modify for your use case: [https://d.pr/n/gfcoAU](https://d.pr/n/gfcoAU).
   Just make sure to turn off CDATA tags in the export: [https://d.pr/i/CsrTB9](https://d.pr/i/CsrTB9).
 *  Thread Starter [doyuk](https://wordpress.org/support/users/doyuk/)
 * (@doyuk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/changing-the-structure-2/#post-13236985)
 * Hello,
    Thank you for your help.
 * I added the code to “Function Editor”.
    I changed it like this: “<ImageURL> [
   soflyy_pmxe_images ({ID}, ‘Image URL’)] </ImageURL>”
 * But it does not show results.
    [https://monosnap.com/file/J8LIZ3gjF9TTtIqfQGQaFesLTkOJ5q](https://monosnap.com/file/J8LIZ3gjF9TTtIqfQGQaFesLTkOJ5q)
 * What could be the problem?
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/changing-the-structure-2/#post-13256950)
 * Hi [@doyuk](https://wordpress.org/support/users/doyuk/),
 * You don’t need to wrap the function in any tags, and you should pass {Image ID}
   and {Image URL} like so:
 * `[soflyy_pmxe_images({Image ID},{Image URL})]`
 * Also:
    - I updated the snippet because of a minor issue with the counts: [https://d.pr/n/gfcoAU](https://d.pr/n/gfcoAU).
    - You’ll have to modify this code further to make it output data the way you
      want.
 *  Thread Starter [doyuk](https://wordpress.org/support/users/doyuk/)
 * (@doyuk)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/changing-the-structure-2/#post-13260346)
 * My issue is resolved now. Thank you!

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

 The topic ‘Changing the “ImageURL” structure’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-export/assets/icon-256x256.png?rev=2570162)
 * [WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel](https://wordpress.org/plugins/wp-all-export/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-export/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-export/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-export/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-export/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-export/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [doyuk](https://wordpress.org/support/users/doyuk/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/changing-the-structure-2/#post-13260346)
 * Status: resolved