Add location coordinates to your post types.
Access your data in the loop using the following functions, with the post ID passed as a parameter. For the full coordinates (in brackets):
<?php echo get_geocode_latlng( $post->ID ); ?>
For the Latitude:
<?php echo get_geocode_lat( $post->ID ); ?>
For the Longitude:
<?php echo get_geocode_lng( $post->ID ); ?>
For the Address:
<?php echo get_geocode_address( $post->ID ); ?>
Requires: 4.0 or higher
Compatible up to: 4.5.3
Last Updated: 3 months ago
Active Installs: 900+
0 of 1 support threads in the last two months have been marked resolved.
Got something to say? Need help?