WordPress.org

Forums

WP Flexible Map
Events manager, multiple locations (6 posts)

  1. adzay
    Member
    Posted 1 year ago #

    Hi i cam across this great plugin when I stumbled upon your snippet for Events manager. I was wondering if you were able to get the snippet to work to show multiple locations on the map (done by the Events manager shortcode "Locations_map"). If so how were you able to achieve this.

    Thnaks

    http://wordpress.org/plugins/wp-flexible-map/

  2. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    G'day adzay,

    No, I haven't done that. I can imagine a process for it, but it's a bit convoluted.

    * create AJAX handler that generates a KML map for an events query
    * add shortcode that loads the KML using the AJAX call

    KML is basically XML, so you could easily create the KML using PHP's XMLWriter class. WordPress AJAX handlers can return anything, and would be the easiest way to get in / out of WordPress to generate a file.

    cheers,
    Ross

  3. adzay
    Member
    Posted 1 year ago #

    Hi ,

    Thanks for your reply. Unfortunately I am not that fluent with XML/Ajax and KML. I will study this.

    I did do a bit of research and came across this post though.

    http://stackoverflow.com/questions/9735376/trouble-getting-the-content-when-generating-an-xml-file-with-wordpress-for-googl

    Cane you tell me if it right for me to use this a guide in the right direction?

  4. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    G'day adzay,

    That's not bad, but I reckon XMLWriter is much more succinct and also more efficient. Take a read of this article comparing the different ways to handle XML in PHP (it has some nice simple examples of each):

    http://devzone.zend.com/1035/xml-and-php-5/

    cheers,
    Ross

  5. kantti
    Member
    Posted 9 months ago #

    Hi,

    Sorry to bump this old thread, but I just happened to stumble upon this discussion and found it relevant for me.

    Did either of you ever figure out how to show multiple locations for one event?

    This is a feature that I would need for events manager and I have no idea how to do it as I'm not a coder.

    You see, my vision is that on the submit event form person could select the location using checkboxes. So that one could choose one or more locations for one's event.

    BR,
    kantti

  6. webaware
    Member
    Plugin Author

    Posted 9 months ago #

    G'day kantti,

    I think this discussion was about the locations map, not multiple locations for one event. I don't think that's possible with Events Manager (each would need to be a separate event, AFAIK)

    cheers,
    Ross

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Flexible Map
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic