benhuson / WP-Geo

WP Geo is a location plugin for WordPress that uses Google Maps. Current stable version can be downloaded from WordPress Extend.
https://wordpress.org/plugins/wp-geo/
25 stars 17 forks source link

[wpgeo] shortcode #57

Open stefanodotta opened 10 years ago

stefanodotta commented 10 years ago

Hello Ben, How are you doing ?

I was considering using the "[wpgeo]" shortcode to display directions or tracks stored in KML files.

It works but it turns out the shortcode is not taking into account the options defined in the settings page, such as the map type, map height, the map controls to be shown and so on, but instead is only using the default plugin options (from function default_option_values()).

See example here: http://beta1.dottaware.net/maps/

Also, the shortcode today only accepts two parameters (rss and kml). I was wondering if you could modify it in such a way to accept the same attributes as, for example, the "[wpgeo_map]" shortcode (width, height, type, etc.).

This would allow me to use a single plugin for all my needs (geotagging, directions, tracks, etc.) instead to have to rely on multiple plugins.

Many thanks for sharing your thoughts on this, Stefano Dotta http://www.twoswisshikers.net/