When I translate the plugin in French It works. I use Locotranslate and that’s fine.
HOWEVER, It doesn’t translate the term :”Kilometers” in “kms“.
How can I do to make it translate ? That’s the only English word on the frontend that still show.
Thanks for your help,
Regards,
]]>When I run an ajax query that goes over my pagination limit and I hit “next” I get the following javascript error:
Uncaught TypeError: Cannot read properties of undefined (reading 'allLocations')
at s.paginate (simple-locator.min.js:1:10150)
at HTMLButtonElement. (simple-locator.min.js:1:4999)
at HTMLDocument.dispatch (jquery.min.js?ver=3.6.1:2:43064)
at y.handle (jquery.min.js?ver=3.6.1:2:41048)
My shortcode is setup as follows:
/**
* Simple Locator Search Form
*/
$shortcode = '[wp_simple_locator
distances="25,50,100,200"
buttontext="Search"
addresslabel="Zip Code or City"
mapcontrols="show"
mapcontrolsposition="RIGHT_BOTTOM"
mapcontainer="#map-container"
resultscontainer="#results-container"
taxonomies="club-or-match"
ajax="true"
]';
echo do_shortcode($shortcode);
Has anyone seen this error before? It blocks me from going to the next page and is a show stopper for me. Thanks.
]]>Input fields and submit button hides behind the white placeholder for future search results. Does not happen on mobile/tablet view.
]]>Import fails due to admin-ajax.php 500
Nothing in php log.
I have the drop down showing but it does not populate anything. My taxonomy name is services so i have [wp_simple_locator taxonomies=”services”]. Does anyone have a clue as to why this would not show? Or how to get the filter by taxonomy to work?
]]>Hello,
I think this may be a bug.
In views\simple-locator-form-ajax.php
there’s a conditional for allowemptyaddress
. The problem is once this is true there’s no space between the class attribute and the form declaration. What you end up getting in the HTML output is:
<formclass="allow-empty">
This then prevents the jQuery from finding the form and appending the security nonce. Without the nonce there’s no form processing and a generic error is returned. This needs updated to include a space in the conditional:
if ( isset($this->options['allowemptyaddress']) && $this->options['allowemptyaddress'] == 'true' ) $output .= ' class="allow-empty"';
– – – – – – – – – –
Luckily, you did provide a filter to manage the form HTML which is super neat! A quick fix for other readers is to simply filter the HTML and make the replacement like so:
/**
* Modify the locator form output
*
* @param String $output
*
* @return String $output
*/
function uniqueprefix_wpsl_form_output( $output ) {
$output = str_replace(
'formclass=',
'form class=',
$output
);
return $output;
}
add_filter( 'simple_locator_form', 'uniqueprefix_wpsl_form_output' );
]]>
It looks like the meta fields for the location information disappeared with the new WordPress update. I’m not using gutenberg — I still have the “classic mode” plugin activated.
It seems that this plugin is abandoned.
]]>There’s currently a filter to modify the output of the forms.
There’s filters to modify and manage the results SQL also.
The issue is that if you were to modify the form output to add additional fields there’s no filter for appending these to the formdata
variable found in the simple-locator.js
file.
It may be possible to add an additional filter to the $localized_data
variable to localize any additional formdata
and combine the two but this is not built in or easily doable without an additional filter. There may also be an easier way to get around this but simply looping through all the available inputs and adding them to formdata
but I’ll leave that choice up to the developer.
I think it would be a useful feature if the shortcode supported an option to search by post title.
]]>I like what I see, but I receive this notice that it’s old and might not be supported… would appreciate a response – thanks!
]]>I have set up the default custom post type of locations and entered a few cities as locations. There is a locations archive. However, when I click on one of the cities in that archive via https://d.xmarksthespot.co.uk/location I get a 404 page not found error.
Do I somehow have to set up a post for a location and link it to the custom post type of locations? If so, how do I do this please? Or have I overlooked something obvious?
Apologies, I’m not a techie.
p.s. Thinking it might be related I edited the plugin code via the following instructions but it made no difference:
https://www.ads-software.com/support/topic/post-type-will-not-save-publish-solved/
Hey there,
i want to combine the search fields of simple locator and wordpress.
i want my users give the possibility to search after a keyword with location search.
Anybody has figured this out?
]]>Hello there,
After upgrading to wp Version 4.9.8 (today), we can no longer update/publish posts used for location.
We use a custom post type and custom fields for longitude and latitude of location.
I’ve noticed this plugin hasn’t been updated for sometime, but have found it to be the best plugin available for our needs so are reluctant to move to a new solution.
Any help much appreciated.
Regards,
Tom
Hi All,
I’m hoping someone might be able to help or at least point me in the right direction. I’ve used the shortcode [wp_simple_locator] with taxonomies=”venue_type”. The issue I’m having is the label is in the not formatted correctly.
Any help what so ever would be greatly appreciated!
Thanks
]]>Add issue where our custom locations post type was not saving / publishing this appears to be a syntax issue in the minified file: /simple-locator/assets/js/simple-locator-admin.js
The first few lines of that should be the following. It can also be deteched if you unminify it and run it through: https://www.jslint.com/ (add the colon after !0; and and remove the plus)
function gm_authFailure(t) {
editScreenGoogleApiError = !0;
} function(t) {
“use strict”;
Hi Everyone,
I’ve just had an issue in Australia with localisation of post codes and some city names and managed to fix it.
When you enter your Google Maps Javascript API V3 Key (public) on /wp-admin/options-general.php?page=wp_simple_locator, Simple Locator must just take that as a variable and add it to the normal Google maps link. As luck would have it, following that key in their code, you can add a variable to set a default country code. I added the following after my key: –
®ion=AU
Once I had done that, my searches default to Australia, so it picks post codes and locations a lot better than the default.
To find your country code, use https://www.nationsonline.org/oneworld/country_code_list.htm. Your code should be something like: –
YOUR_API_KEY®ion=ES
(this one is for Spain)
Hope this works for you.
]]>Hi,
we have to use the plugin in Spain. And the deafault postal codes search in U S locations. Canwe configure it in Spain?
Thanks.
]]>Hi,
On my site users want to see people who are interested in a specific job category (eg: Teaching) within a certain distance (eg: 50 Miles) from my location (eg: London).
How do I add another field as well (category) in my search on map?
Thanks
Clicking Update won’t cause the Location item to save. After clicking on Update, the page is no longer scrollable (class “modal open” added to body tag) and the location item isn’t saved. No JS errors. Posts & pages update without issues. This is also the case when all other plugins are disabled. Could it be the updated version of WordPress?
]]>Hi, this is a really great plugin, I love it.
Are there any plans for a next release?
I’m interested also in translating it in Italian, I can surely give my contribution, but I’d like to know if it will be abandoned.
Thanks a lot for your work anyway!
]]>Plug in works unless I turn on.the Use My Location Button.
then it just spins and I get this error.
[blocked] Access to geolocation was blocked over insecure connection to https://new.eatatgreen.com.php7-34.lan3-1.websitetestlink.com.
Any ideas?
]]>A little quirk in the code: allowemptyaddress needs a space between the form tag and the class.
Line 19 in simple-locator-form-ajax.php
if ( isset($this->options['allowemptyaddress']) && $this->options['allowemptyaddress'] == 'true' ) $output .= 'class="allow-empty"';
needs to change to
if ( isset($this->options['allowemptyaddress']) && $this->options['allowemptyaddress'] == 'true' ) $output .= 'class=" allow-empty"';
The results show all the posts and not just the locations posts. If there’s a fix or update to the plugin, it would be great!!
]]>Hi,
I’m building a website that requires ADA compliance. In order to check this I’m running the page through a web tool that shows all errors.
There is a problem with the form labels in this plugin and I can’t get them to work correctly. As an example, here is the developer’s homepage run through the web tool – https://wave.webaim.org/report#/https://locatewp.com/
You will notice that the input areas say there is no form label. I think one way to correct this would be to have the <input> tag inside the <label> tag… Either that, or make sure that the <input> tag has an ‘id’ attribute that matches that of the <label> tag’s ‘for’ attribute.
Does this make sense? Could this be corrected please?
Thanks!
]]>Hi there, love the plugin, it does just what I need for a project I’m working on.
However when using it with custom posts that use WP_Editor it stops the Add Media function from working.
]]>Not sure when this broke because it’s been a long time since we added new locations (aka “CASAs” in our installation), but new locations are not being indexed / showing up in search results.
This CASA: https://texascasa.org/local-casa/casa-serving-hill-county/
If you search for ‘76645’ in the ‘Volunteer at your Local CASA’ form in the sidebar, you’ll see that location does not display in the results, despite being the closest location. I’ve turned on js debugging, cleared all caches many times, confirmed it’s not set to no-index or anything like that… I’m running out of ideas. Can you help? Thank you!
]]>I can’t get the marker pins to show up, regardless if I use a custom pin or not…The map actually centers to the location, but no pins.
Any suggestions?
]]>I found that my CPT does not show up in the “Import to Post Type” dropdown, if it is set to publicly_queryable => false
.
I rely on this option because I don’t want single pages to exist for this post type, and this is the option that allows me to do that.
It’s easy to quickly set it to true for import, but I would like my client to be able to import in the future, and they won’t know how to change this setting.
Any thoughts would be appreciated, thanks!
]]>Hi,
Is there a simple way to use clustering with Simple Locator ?
https://googlemaps.github.io/js-marker-clusterer/examples/simple_example.html
]]>The plugin works so well, though missing one item that I need: Would it be possible to set up this plugin to work with query variables?
So if I set up a form on some other page which directs to www.mysite.com/results-page/?address=new+york
, it would fill in the field from the Simple Locator shortcode and display the map to those results.
Any tips would be greatly appreciated!
]]>Hi
I had simple locator setup and working, and then it stopped – not sure when’
Ive enabled the debug to the console, and it shows that the data is being retrieved, but the page is not showing the data
https://www.judonsw.com.au/find-club/
Any ideas?
]]>