Skip to content

Instantly share code, notes, and snippets.

@bordoni
Last active August 29, 2015 14:14
Show Gist options
  • Save bordoni/fe281fc27597a53360ed to your computer and use it in GitHub Desktop.
Save bordoni/fe281fc27597a53360ed to your computer and use it in GitHub Desktop.
Solving a MAP and Venue Templating issue
diff --git a/lib/EmbeddedMaps.php b/lib/EmbeddedMaps.php
index 7cc94c4..d7fd80b 100644
--- a/lib/EmbeddedMaps.php
+++ b/lib/EmbeddedMaps.php
@@ -88,7 +88,7 @@ class TribeEvents_EmbeddedMaps {
$this->embedded_maps[] = array(
'address' => $this->address,
- 'title' => tribe_get_venue( $this->venue_id )
+ 'title' => esc_html( get_the_title( $this->venue_id ) ),
);
end( $this->embedded_maps );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment