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

post ids parameter for wpgeo_mashup shortcode #52

Open calcypher opened 10 years ago

calcypher commented 10 years ago

I've developed the code for 3 new parameters in wpgeo_mashup shortcode:

you can see an example on my site: http://www.teneldeserto.it/2012/08/24/bangkok-wat-arun/ http://www.teneldeserto.it/2012/08/27/thailandia-e-cambogia-2012-itinerario-di-viaggio/

the markers are selected by post ids. if you would like to integrate my code, i can send you my code. It's only some changes in wpgeo's files.

benhuson commented 10 years ago

Hi. If you post your changes here I'll happily integrate them into the plugin :)

calcypher commented 10 years ago

My changes are in two file, includes/shortcodes.php and includes/templates.php. i must write the code here because it's not possible to attach php files here.

in shortcodes.php, i've changed the function "shortcode_wpgeo_mashup":

/**

in templates.php, i've changed the function "get_wpgeo_map":

/**

feel free to change the code if you think it needs any fix.

benhuson commented 10 years ago

Allow 'post_ids' for short code added in https://github.com/benhuson/WP-Geo/commit/e7d3a5115a2e53752c88cbf08f65ab06475886fd

benhuson commented 10 years ago

For the 'title_link' attribute, are you using that to link to Google Maps or another custom URL?

calcypher commented 10 years ago

it can be every url that you want, not necessary Google Maps.