Category Archives: Neighborhood Walker plugin

How to auto-integrate walker into other theme?

If you don’t want to each time when adding new property add shortcode this is solution for you:

Walker map can be auto-integrated into theme or plugin with some customizations:

You should investigate which template file generate property preview page and how to fetch coordinates, address and title ,then set it to variables:

$w_p_title , $gmap_lat, $gmap_long, $property_address

Here is example code to generate shortcode in template file:

<h4>Neighborhood places</h4>
<?php
$w_p_title = get_post_meta($post->ID, 'post_title', true);
$gmap_lat = $gmap_lat;
$gmap_long = $gmap_long;
$property_address = $property_address;

echo do_shortcode('[walker metric="km" latitude="'.$gmap_lat.'" longitude="'.$gmap_long.'" default_index="1"]'.$w_p_title.'<br />'.$property_address.'[/walker]');
?>

If you have issues or not familiar with “code” I can also try to do this for you for additional cost. If you are interested drop me email or open support ticket…

 

 

 

Custom details on places infowindow

Details can be removed with simple customizations, part of code where content is generated:
wp-content\plugins\SW_Neighborhood_Walker\js\near_places_obj.js, line 321 or search for “placeDetails” and remove wanted, for example part: <a>….</a> if you want to remove link to details.

Regarding address, if you want to add more details etc…
Can be used like this:
'<br />Address: '+placeDetails.formatted_address+

Demo Neighborhood Walker plugin

Buy it exclusive on codecanyon!

Demo for Slovenia  (Europe) example:

46.4199535
15.8696884
My demo location example…
2000
WALKING
km
en
15
100%
4
400px
Distance
Walking time
min
Details

Demo for India example:

45.8129663
15.976036000000022
My demo location example…
2000
WALKING
km
en
15
100%
india, nagpur
4
400px
Distance
Walking time
min
Details

Demo for Sri Lanka example:

45.8129663
15.976036000000022
My demo location example…
2000
WALKING
km
en
15
100%
Colombo, Sri Lanka
4
400px
Distance
Walking time
min
Details

Demo for Portugal example:

45.8129663
15.976036000000022
My demo location example…
2000
WALKING
km
en
15
100%
Portugal, Amadora
4
400px
Distance
Walking time
min
Details

 

Tehnical documentation