diff --git a/templates/event-venue.php b/templates/event-venue.php
index 719ef4a6..e23e25b8 100644
--- a/templates/event-venue.php
+++ b/templates/event-venue.php
@@ -29,9 +29,8 @@ foreach( $venues as $venue ):
if ( $link_venues )
$name = '' . $name . '';
- $address = sp_array_value( $meta, 'sp_address', '' );
- $latitude = sp_array_value( $meta, 'sp_latitude', 0 );
- $longitude = sp_array_value( $meta, 'sp_longitude', 0 );
+ $address = sp_array_value( $meta, 'sp_address', null );
+ $address = urlencode( $address );
?>
@@ -41,7 +40,7 @@ foreach( $venues as $venue ):
|
-
+
| $meta ) ); ?> |
diff --git a/templates/venue-map.php b/templates/venue-map.php
index 180f982a..86da021f 100644
--- a/templates/venue-map.php
+++ b/templates/venue-map.php
@@ -27,7 +27,7 @@ if ( '' === $address ) $address = '+';
if ( 'satellite' !== $maptype ) $maptype = 'roadmap';
if ( $latitude != null && $longitude != null ){
- do_action ( 'sp_venue_show_map', $latitude, $longitude, $address, $zoom, $maptype );
+ do_action ( 'sp_venue_show_map', $latitude, $longitude, $address, $zoom, $maptype );
}
if ( is_tax( 'sp_venue' ) )
do_action ( 'sportspress_after_venue_map' );
\ No newline at end of file