• The template tag %event_venue_map% is broken

    Google have changed the way they display maps, which could be part of the cause – the following works for me

    // comments below include possible default values.
    
       // $address="%event_venue%, %event_venue_address%, %event_venue_city%, %event_venue_postcode%"
    
       $map = '<iframe ';
       $map .= 'width="' . $width . '" ';  // $width=800
       $map .= 'height="' . $height . '" ';  // $heigh=450
       $map .= 'frameborder="' . $border_width . '" ';  // $border_width=0
       $map .= 'style="' . $style . '" ';  // $style='border:0',
       $map .= 'zoom=' . $zoom ;  // $zoom=21
       $map .= 'src="https://www.google.com/maps/embed/v1/place?'
       $map .= 'key=' . $google_key;  // you probably want user/webmaster to generate her/his own key with google
       $map .= '&q=' . $address;  // see suggested address above
       $map .= ''">';
       $map .= '</iframe>';

    https://wordpress.org/plugins/event-organiser/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Template tag %event_venue_map% broken’ is closed to new replies.