Kiran
Forum Replies Created
Viewing 15 posts - 601 through 615 (of 6,022 total)
Viewing 15 posts - 601 through 615 (of 6,022 total)
Hi @directoryfan,
Use following PHP snippet to adjust city for addresses within Germany.
/**
* Adjust city for Germany addresses with OSM.
*/
function gd_snippet_adjust_geocode_city() {
?>
if ( window.gdMaps == 'osm' ) {
if ( getCountryISO == 'DE' && response.address ) {
gdaddr = response.address;
if ( ! gdaddr.city && ! gdaddr.town && gdaddr.village ) {
getCity = gdaddr.village;
response.city = getCity;
}
}
}
<?php
}
add_filter( 'geodir_add_listing_geocode_js_vars', 'gd_snippet_adjust_geocode_city', 30 );
I have added snippet under Snippets > OpenStreetMap autocomplete search adjust city.
Please check and let us know.
Regards,
Kiran
Hi Matthew,
We have tested all new release with WordPress v5.3.2. It could be a plugin cache issue, because it not showing similar message to me(see attachment).
Kiran
Hi Jeff,
This has been fixed and it will be in next release soon.
Kiran
Get the latest news, tips, and exclusive content directly in your inbox.
Confirm your email address, and instantly receive the discount code :)