• How can I use the locations map to search a postcode value. Your documentation said that I can use the normal search attributes, but when I use a postcode it just shows all locations (map is zoomed out to show all of England).

    I want the map to show locations near a postcode inputted by a user. Is this actually possible?

    I am using the 5.4 plugin version by the way because my maps wouldnt load with 5.5.

    Also.
    Is it pussible to use “Search” search attribute with the map?

    https://www.ads-software.com/plugins/events-manager/

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    postcode, this works on EM 5.5; can I know what happens on your map with 5.5?

    search, can I know what do you mean by this?

    Thread Starter adzay

    (@adzay)

    Hi,

    In your documents on your website you have this in the shortcode section:

    [locations_map]
    Inserts a map of multiple locations. Accepts any of the event, location and general search attributes, as well as these two:

    On the “search attribute” page one of the attributes is the following

    search
    Do a search for this string within event name, details and location address.

    My goal is to have one input box where someone can type in either a postcode, address or town. That value will be inputted into the shortcode [locations_map search="$Search_value"].

    In regards to the 5.5 map issue. It is on my developing server.
    I believe that I am having the same issue that many others are having with 5.5. The maps do not load. Im not sure if you have a fix for it yet though. Unfortunately there are multiple threads with map issues, will you be able to link me to the thread that has the correct workaround/solution?

    Plugin Support angelo_nwl

    (@angelo_nwl)

    [locations_map search=”$Search_value”]

    sorry but this won’t work; you might need to create your own search attribute to handle this – https://wp-events-plugin.com/tutorials/creating-custom-event-search-attributes/

    with regards to map issue with 5.5; we are currently working on the same issue however can you give us more details what are the issues you are experiencing?

    thanks

    Thread Starter adzay

    (@adzay)

    hi on all my browsers all issuess point to the following line . google.maps.event.addListenerOnce(map, 'idle', function(){ if( !em_maps_loaded ) em_maps(); });

    in the events-manager.js file

    Plugin Support angelo_nwl

    (@angelo_nwl)

    thanks, we will going to look into this. btw, can you share sample link to your site for us to see?

    Thread Starter adzay

    (@adzay)

    Hi, Angelo.

    I upgraded to 5.5 only on my development server. The live server https://www.thevibesign.com is still running the old version of events manager(unfortunatley I cant turn maintenance mode off because Im at work so only the splash page is available). Maybe you may be able to help me find google api instances that are running that may conflict.

    Thanks,

    As the issue is with the new version, we won’t be able to gather any info from the live site while it’s still on the earlier version.

    This is a known issue that’s being worked on however.

    Thread Starter adzay

    (@adzay)

    Hi both, thanks for your input.
    Since you are working on the issue, do you recommend that I wait for an update before I upgrade events manager on my live server?

    Or Will you have time to be able to provide me with a quicker workaround if I upgrade the plugin on my live site so you can check it.

    If the latter, I would like to know if the upgrade totally reversible? (As in i can just replace the Events manager 5.5 folder in the wp-plugins with the old-version if my site messes up).

    Plugin Support angelo_nwl

    (@angelo_nwl)

    I advise that you keep your working EM version and wait for the update while we are working on the issue.

    Thread Starter adzay

    (@adzay)

    Hi, Your latest update fixed the maps. They now load. However I still cannot get the maps to pinpoint a user specified location.

    [locations_map width=”1250″ height=”500″ POSTCODE=”sw17 7tr” ].

    I would like the map to center on the postcode specified in the map shortcode once it loads. How can I do this?

    The postcode attribute is case-sensitive, so try:

    [locations_map width="1250" height="500" postcode="SW17 7TR"]

    Thread Starter adzay

    (@adzay)

    Hi, it doesn’t work.

    I want the map to center on that custom postcode so that users can see the location posts around it.

    I thought it was because I do not have a location post with that postcode.

    What doesn’t make sense to me is that I tried it with the postcodes from my location posts and it still did not center.

    To be honest, this has me stumped. I’ll ask Marcus to take a look at this thread on Monday.

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    Does a location exist in that postcode? It is also space sensitive so maybe you need to compare with a location to see.

    Otherwise, you can try the near attribute (undocumented, new in 5.5), using google Lat/Lng coordinates e.g. near=”0,0″

    Thread Starter adzay

    (@adzay)

    Hi Marcus,
    Nope a location doesn’t exist in that postcode. I was hoping to use that postcode search attribute as follows:

    1. User visits my site, inputs their postcode
    2. the postcode is then put in the location-map Short code (through PHP of course)
    3. then the map centers on their postcode, showing the locations ( that i have posted on the site) around it.

    is that how the location maps work?

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Maps Shortcode and post code’ is closed to new replies.