Title: Nested Tag XML Feed
Last modified: May 17, 2025

---

# Nested Tag XML Feed

 *  Resolved [Fody](https://wordpress.org/support/users/fodisery/)
 * (@fodisery)
 * [1 year ago](https://wordpress.org/support/topic/nested-tag-xml-feed/)
 * I’m tring to make xml feed for real estate facebook ads.
   [https://developers.facebook.com/docs/marketing-api/real-estate-ads/get-started/](https://developers.facebook.com/docs/marketing-api/real-estate-ads/get-started/)
 * How to make custom xml where the tag have another tag in it?
   I want to output
   image urls inside nested tag so it looks like:
 * `<image><url>{URL_1}</url></image><image><url>{URL_2}</url></image>`
 * Full example:
 *     ```wp-block-code
       <?xml version="1.0" encoding="UTF-8"?><listings>    <title>example.com Feed</title>    <link rel="self" href="http://www.example.com"/>    <listing>        <home_listing_id>12345678</home_listing_id>        <name>1 Hacker Way, Menlo Park, CA 94025</name>        <availability>for_rent</availability>        <description>An amazing listing</description>        <address format="simple">            <component name="addr1">1 Hacker Way</component>            <component name="city">Menlo Park</component>            <component name="region">California</component>            <component name="country">United States</component>            <component name="postal_code">94025</component>        </address>        <latitude>1.11414</latitude>        <longitude>-1.835003</longitude>        <neighborhood>Menlo Oaks</neighborhood>        <image>            <url>http://example.com/12345678-1.jpg</url>        </image>        <image>            <url>http://example.com/12345678-2.jpg</url>        </image>        <image>            <url>http://example.com/12345678-3.jpg</url>        </image>        <listing_type>for_rent_by_agent</listing_type>        <num_baths>6</num_baths>        <num_beds>5</num_beds>        <num_units>1</num_units>        <price>110000 USD</price>        <property_type>house</property_type>        <url>http://www.example.com/link_to_listing</url>        <year_built>2007</year_built>    </listing></listings>
       ```
   
 * I tied putting in 1 line but it not smart enough to detect what i want, instead
   just repeating the url tag inside the image tag:
   `<image><url>{Image URL}</url
   ></image>`
 * I have also tried custom php function but the url tag gets sanitized.
 * `&lt;url&gt;https://example.com/1.png&lt;/url&gt;`
    -  This topic was modified 1 year ago by [Fody](https://wordpress.org/support/users/fodisery/).
    -  This topic was modified 1 year ago by [Fody](https://wordpress.org/support/users/fodisery/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Trey](https://wordpress.org/support/users/ix3/)
 * (@ix3)
 * [1 year ago](https://wordpress.org/support/topic/nested-tag-xml-feed/#post-18473279)
 * Hi [@fodisery](https://wordpress.org/support/users/fodisery/),
 * Custom XML exports are Pro-only feature, so you’ll need to send this to our support
   team here: [http://www.wpallimport.com/support/](http://www.wpallimport.com/support/).
   We can only help with our free plugin features on this forum.

Viewing 1 replies (of 1 total)

The topic ‘Nested Tag XML Feed’ 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/)

 * 1 reply
 * 2 participants
 * Last reply from: [Trey](https://wordpress.org/support/users/ix3/)
 * Last activity: [1 year ago](https://wordpress.org/support/topic/nested-tag-xml-feed/#post-18473279)
 * Status: resolved