Title: multiple address in shortcode
Last modified: August 21, 2016

---

# multiple address in shortcode

 *  [jmsilone](https://wordpress.org/support/users/jmsilcom/)
 * (@jmsilcom)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/multiple-address-in-shortcode/)
 * Hi there,
 * i can’t multiple address in one shortcode but I have to do. My project need to
   import multiple physical address from a database. May be can you explain how 
   to export in kml ?
 *  Please let me know,
 *  Thanks.
 * [http://wordpress.org/extend/plugins/wp-flexible-map/](http://wordpress.org/extend/plugins/wp-flexible-map/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [webaware](https://wordpress.org/support/users/webaware/)
 * (@webaware)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/multiple-address-in-shortcode/#post-3822809)
 * G’day, you can export KML from your database by building it up as an XML feed.
   KML is just XML with a specific set of elements; read the [KML tutorial](https://developers.google.com/kml/documentation/kml_tut)
   for more information. Take a look at [this really simple example file](http://snippets.webaware.com.au/maps/example-toronto.kml)
   to see how to structure a KML map with multiple addresses.
 * If you are exporting the data from a WordPress website, I suggest you use the
   [AJAX interface](http://codex.wordpress.org/AJAX_in_Plugins) as it will greatly
   simplify pulling direct data from WordPress. Here’s some [example code for pulling XML from WordPress](http://snippets.webaware.com.au/snippets/integrating-classic-asp-with-wordpress-using-ajax/)(
   read the first code snippet in the section _Pulling XML from WordPress and processing
   in Classic ASP_).
 * Because you will be dynamically generating the KML, you’ll need to prevent Google
   Maps from caching your KML (it reads it once and caches it, so if it changes,
   you’ll need to bust the cache). See the support topic [Dynamically generated KML](http://wordpress.org/support/topic/dynamically-generatet-kml)
   for more information.
 * cheers,
    Ross

Viewing 1 replies (of 1 total)

The topic ‘multiple address in shortcode’ is closed to new replies.

 * ![](https://ps.w.org/wp-flexible-map/assets/icon-256x256.png?rev=2590627)
 * [Flexible Map](https://wordpress.org/plugins/wp-flexible-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-flexible-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-flexible-map/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-flexible-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-flexible-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-flexible-map/reviews/)

## Tags

 * [kml](https://wordpress.org/support/topic-tag/kml/)

 * 1 reply
 * 2 participants
 * Last reply from: [webaware](https://wordpress.org/support/users/webaware/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/multiple-address-in-shortcode/#post-3822809)
 * Status: not resolved