Skip to content

WP Geo is a location plugin for WordPress that uses Google Maps. Current stable version can be downloaded from WordPress Extend.

Notifications You must be signed in to change notification settings

benhuson/WP-Geo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

=== WP Geo  ===
Contributors: husobj
Tags: maps, map, geo, geocoding, google, location, georss
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5FN8ZMNCHBM3J
Requires at least: 4.6
Tested up to: 5.4
Stable tag: 3.5.1
License: GPLv3
License URI: http://www.opensource.org/licenses/gpl-license.php

Adds location maps to your posts, pages and custom post types.

== Description ==

> **Important Note About WP Geo 3.3+**  
> This update now uses Google Maps API v3. While it should continue to work OK it you have simply installed and are using a previous version of WP Geo, if you have customised your templates or used any filters you may need to update your code to work with this version of Google's API. Please [submit any bugs or issues here...](https://github.com/benhuson/WP-Geo/issues)

When editing a post or page, you will be able to set a physical location for that post and easily embed a Google map into your post. You can select the location by:

1. Clicking on the map of the world to position the point.
2. Searching for a location, town, city or address.
3. Entering the latitude and longitude. 

The WP Geo location selector is styled to fit seamlessly into the latest version of the WordPress admin.

More information can be found at http://www.wpgeo.com/.

= Features =

* Custom marker title setting per post.
* Custom zoom and map type per post.
* Supports custom post types.
* Widget zoom option.
* Default Map Location setting.
* Geo Meta Tags
* Markers links to posts
* Settings for default controls
* Custom Markers
* Sidebar Widget
* GeoRSS points in feeds.
* Set default map zoom level.
* Show post maps on category and archive pages.
* Set default width and height for maps
* Shortcode [wp_geo_map] to insert map within your post
* Select your preferred map type
* Select wether to show your map at the top or bottom of posts (or not at all)
* Set a location by clicking on a map or
* Set a location by searching for a location, town, city or address or
* Set a location by entering the latitude and longitude

= Languages =

WP Geo is currently available in the following languages:

* Belorussian (by [Ilyuha](http://antsar.info/))
* Bulgarian (by [Roman Rachkov](http://www.georss.biz/))
* Chinese, Simplified (by [Steen Chow](http://twitter.com/imsteen))
* Croatian (by [Andrija Papec](http://www.adriaindex.com/))
* Danish (by [Georg](http://wordpress.blogos.dk/søg-efter-downloads/?did=91))
* Dutch (by [Davey IJzermans](http://daveyyzermans.nl/))
* English (default)
* French (by Alain Messin)
* German (by [Ivan Graf](http://blog.bildergallery.com/))
* Italian (by Diego Pierotto)
* Russian (by [Fat Cower](http://www.fatcow.com/))
* Serbian (by Borisa Djuraskovic - [Web Hosting Hub](http://www.webhostinghub.com/))
* Spanish (by Alberto)
* Turkish (by Mehmet HAKAN, [WPsitesi](www.wpsitesi.com))

== Installation ==
1. Download the archive file and uncompress it.
2. Put the "wp-geo" folder in "wp-content/plugins"
3. Enable in WordPress by visiting the "Plugins" menu and activating it.
4. Go to the Settings page in the admin and enter your Google API Key and customise the settings.

You will need to register a [Google Maps Platform](https://cloud.google.com/maps-platform) account to [create an API key](https://developers.google.com/maps/documentation/javascript/get-api-key).

WP Geo will appear on the edit post and edit page screens.
If you set a location, a Google map will automatically appear on your post or page (if your settings are set to).

= Upgrading =

If upgrading from a previous version of the plugin:

1. If you are not performing an automatic upgrade, deactivate and reactivate the plugin to ensure any new features are correctly installed.
2. Visit the settings page after installing the plugin to customise any new options.

== Frequently Asked Questions ==

None at the moment.

== Screenshots ==

1. Example of a post with a map.
2. Admin panel shown when editing a post or page.
3. Admin Settings
4. Widget Settings

== Changelog ==

= WP Geo 3.5.1 =

* Deprecate `create_function()`. Props @flynsarmy.
* Remove deprecated PHP4 constructors. Props @flynsarmy.
* Correctly set Map Settings checkbox values on post admin page load. Props @flynsarmy.
* Change URLs to https. Props @flynsarmy.
* Update map center value when updating location. Props @flynsarmy.
* Remove WP Geo admin Dashboard as feed no longer exists.
* Add Turkish translation. Props @WPsitesi.

= WP Geo 3.5 =

* Remove Yahoo! feed namespace.
* Add `wpgeo_feed_namespaces` filter to allow feed namespaces to be customized.
* Fix code in widget. Props @Fussverkehr.
* Fix sanitization of coordinates. Props @PiwEL.
* Update Google Maps documentation and notifications.
* Refactor and fix issues with the `wpgeo_check_domain()` function.
* Remove SensortNotRequired JS warning.

= WP Geo 3.4 =

* Use PHP 5 class constructors (compatibility with WordPress 4.3).
* Split Map, Polyline, Point and Coord classes into seperate files.
* Prepare for deprecating Google Maps v2 support by only showing option if already selected.
* Add wpgeo_refreshMapContainer() JS function to refresh map (e.g. after showing in tab).
* Escape HTML and attributes.
* Use WordPress buttons styles for post admin fields and add placeholder text.

= WP Geo 3.3.9 =

* Security fix: Escape URLs that use add_query_arg() or remove_query_arg().
* Only load admin scripts for post types that support WP Geo.
* Prevent widgets from overwriting global $post variable.
* Added Serbian translation. Props Borisa Djuraskovic.
* Tested up to WordPress 4.2

= WP Geo 3.3.8 =

* Google Maps API v3 URL does not require API key.
* Fix JavaScript setVisible() bool error in admin - was causing certain parts of the media modal to fail.
* Use default width and height in get_wpgeo_post_map().

= WP Geo 3.3.7 =

* Only load admin JavaScript on edit post pages (fixes Jetpack plugin conflict).

= WP Geo 3.3.6 =

* Fix tooltip titles.
* Fix Default Map Location label width in admin (was cropping longer translations).
* German language updates.

= WP Geo 3.3.5 =

* Allow specifying of 'post_ids' in wpgeo_mashup shortcode.
* Workaround for when blog is non-ssl but the admin-page is. Props miicha
* Added zoom parameter to get_wpgeo_map() function.
* Added 'wpgeo_marker_link' filter.

= WP Geo 3.3.4 =

* Maps should use default control setting if not specified.
* Remove old unused renderMapJS() function.
* Change layout of "Show maps on" fields.
* Remove feedback from settings page.
* Add post type support settings. Supports media.
* Fix map centre and zoom in Google Maps API v2.
* Disable mouse scrollwheel on admin map.

= WP Geo 3.3.3 =

* Try to fix box shadow styles on themes like Twenty Twelve.
* Fixed map type, overview, pan and zoom controls.

= WP Geo 3.3.2 =

* Fix minimum zoom level when display map with multiple markers - including widgets.
* Fix Google Maps localization - uses 'language' query in URL.
* Added WPGeo::get_post_map_settings( $post_id ) for retrieving validated post map settings.

= WP Geo 3.3.1 =

* Allow for WPGEO_LATITUDE_META and WPGEO_LONGITUDE_META to be defined earlier.
* Added 'wpgeo_map_default_query_args' filter.
* Setup WPGeo_API class which can be extended for other APIs.
* wpgeo_check_domain() now checks if SSL.
* Remove duplicate 'markers' attribute from get_wpgeo_map() arguments array. Props max_Q
* Ensure coords always use full stop rather than comma for decimal point when using floatval().
* Fix undefined errors in category widget.
* Replace URL encoded '&' in Google API URLs - Google doesn't like the encoded version.

= WP Geo 3.3 =

* Huge raft of changes for compatibility with Google Maps API v3.
* If you have created custom code or use plugins that interface with WP Geo, you may need to update them.
* $wpgeo->categoryMap() deprecated (use wpgeo_map() with custom query instead).

= WP Geo 3.2.7.1 =

* Fixed widget title and arguments conflict. Props NotIanAshworth.

= WP Geo 3.2.7 =

* Added [wpgeo_title] shortcode.
* Added [wpgeo_static_map] shortcode.
* Added category map widget. Props David Keen.
* Added wpgeo_is_valid_geo_coord() function.
* Added 'wpgeo_show_maps' filter.
* Enable loading of maps on CPT archive page by checking the 'Show Maps On' CPT and 'Posts archive/home page' checkboxes.
* Settings page now uses WordPress Settings API.
* All styles now enqueued properly.
* Only loads admin functionality when in admin.
* Don't use global var $posts. Props pl.massard.
* Fix WPGEO_DIR. Props Jghazally.
* Fix post map type checkbox. Props RavanH.
* Fix markers being searched for in the wrong folder. Props dolby_uk.
* Minimum WordPress version 3.0 required - legacy code removed.

= WP Geo 3.2.6.4 =

* Fix for maps not showing in admin.

= WP Geo 3.2.6.3 =

* Updated Google API Key link.
* Fixed the plugin not loading on the post editor over https. props Mile Rosu.

= WP Geo 3.2.6.2 =

* Fix incompatiability issue when trying to upload images using NextGEN Gallery.

= WP Geo 3.2.6.1 =

* Fix filepath that causes broken HTML editor.

= WP Geo 3.2.6 =

* Added support for custom post type in Recent Locations widget.
* Added Static Map (get_)wpgeo_post_static_map template tags. Props Jurriaan Persyn.
* Added Dutch translation by Davey IJzermans.
* Fixed custom post type settings. Checkboxes are now only shown disabled if support is explicitly added using add_post_type_support().
* Fixed widget_is_active() function.
* Fixed path and compatibility for MultiSite installations.

= WP Geo 3.2.5 =

NOTE: You will need to re-add your widgets after upgrading!

* Widgets updated to use Widget API - you can now add multiple widgets.
* Added recent locations widget.
* Added 'wpgeo_base_country_code' filter so you can default admin post map search to a base country.
* Added option to show maps in taxonomy archives.
* Fixed admin map not showing after publish if "Save map centre point for this post" checked but no marker added.
* Fixed some deprecated functions and undeclared variables.
* Fixed feeds - incorrect database table references.
* Fixed dashboard - uses SimplePie.
* Prevent post been saved when pressing enter in WP Geo post fields.
* Check that co-ordinates have been set in get_wpgeo_post_map().

= WP Geo 3.2.4 =

* Added option to allow saving of zoom level, map type and centre point to be checked by default.
* Added option to choose custom marker per post.
* Don't output script tags if theres no script.
* Added options to show map on excerpts and author archives.
* Default output for the [wpgeo_map_link] shortcode. Props RavanH.

= WP Geo 3.2.3 =

* If markers image files aren't in uploads folder, default to using the ones in the plugin folder.
* Fix for post settings being overwritten when using quick edit.
* Added extra attributes to 'wpgeo_mashup' shortcode.
* Added extra style fix for background image colours.
* Updated Italian language files.

= WP Geo 3.2.2 =

* Added [wpgeo_mashup] shortcode. props RavanH.
* Added align attribute to shortcode.
* Try to fix themes with image background colours.
* get_wpgeo_map() now accepts width and height arguments.

= WP Geo 3.2.1 =

* Fix for category map markers all displaying the same tooltip title.
* Fixed 'wpgeo_markers' filter. Was being run to early before other plugin and theme functions.php had a chance to do anything.
* Add styles to try to override max-width images in themes which can cause map tiles to render incorrectly.
* Added settings link to plugins page.
* Escaped post title for use in JavaScript in get_wpgeo_map() and bumped minimum WordPress version up to 2.8. props RavanH.
* Fixed longitude and latitude shortcodes - they were the wrong way round.
* German language files updated.

= WP Geo 3.2 =

* Fix for tooltip not working in WordPress 3.0.
* Fix to allow maps to be shown on tag archive pages by Lee Willis.
* Fix for default_map_control setting not being saved correctly.
* Ensure default map location is populated, otherwise map does not display when editing a post in the admin.
* Don't try to show maps in feeds.
* Make sure includes are only included once.
* Added support for custom post types in WordPress 3.0.
* Added wpgeo_title() and get_wpgeo_title() template tags.
* Added wpgeo_post_map() and get_wpgeo_post_map() template tags.
* Added wpgeo_check_version() and wpgeo_check_db_version() for checking WP Geo version.
* Added 'wpgeo_markers' filter in preparation for being able to add new marker icons.
* Added 'wpgeo_marker_icon' filter. Allows you to override a marker icon based on post data and context.
* Added Simplified Chinese language.
* Language files updated.

= WP Geo 3.1.4 =

* Now uses new Google 3D map control.
* Adding text colour style to tooltip text in case default text colour is white.
* Prevent map from aligning marker centre on zoom. Added a link to centre manually instead.
* Moved a lot of JavaScript for the post edit page to external files.
* Code formatting clean-up, added code comments, files restructured.
* Added WPGeo_Marker class in preparation for better marker management.
* Added option to save post map centre point.
* Added wpgeo_map() and get_wpgeo_map() functions to display custom maps based on a WordPress query.
* Added 'wpgeo_init' action hook.
* Added 'wpgeo_the_content_map' filter.
* Added 'wpgeo_edit_post_map_fields' filter.
* Added 'wpgeo_point_title' filter.
* Added 'wpgeo_show_post_map' filter.
* Language files updated.

= WP Geo 3.1.3 =

* Oops, loads of bugs... Fix and release as 3.1.4

= WP Geo 3.1.2 =

* Fixed strange activation bug caused by includes/template.php (renaming the file seem to fix it).

= WP Geo 3.1.1 =

* Updated Danish, French and German translations.
* Google Maps locale is set based on WordPress locale.
* Added template tags wpgeo_longitude() and wpgeo_latitude().

= WP Geo 3.1 =

* Added custom marker title setting per post.
* Added settings for custom zoom and map type per post.
* Added widget zoom option.
* Added Default Map Location setting.
* Croatian language added.
* Bulgarian language added.
* Show warning if the marker images folder has not been created.
* Fix marker tooltip text to be compatible with qTranslate plugin.
* Added filter hook to override 'wpgeo_google_api_key'.

= WP Geo 3.0.9.2 =

* Belorussian language added.
* Added 'wpgeo_map_js_preoverlays' hook for developers to add javascript to maps.

= WP Geo 3.0.9.1 =

* Fix for GUnload() and GBrowserIsCompatible() being called when not available/required.
* Russian language added.

= WP Geo 3.0.9 =

* Added width and height attributes to shortcode.
* Added width and height attributes to category map.
* Danish language updated.

= WP Geo 3.0.8.1 =

* Fixed Google Javascript API loading via proxy issue.
* Tooltip.js filename now all lowercase.
* Added Changelog tab to read me file.

= WP Geo 3.0.8 =

* Additional Geo Feed control.
* Load maps from GeoRSS or KML data.
* Danish language added.
* Languages updated.

= WP Geo 3.0.7.1 =

* Firefox scrolling bug fixed.
* Added longitude and latitude shortcodes.
* Marker on maps in admin now update as you manually change longitude and latitude.
* Added setting to show maps on search result page.

= WP Geo 3.0.7 =

* Added map button in rich text editor.
* Added setting to turn on/off polylines.
* Added setting to set colour of polylines.
* Added setting to override polylines in Widget.
* Using v2.118 of Google Maps to prevent Javascript errors.
* Added WP Geo news feed widget on admin dashboard.
* Admin panels re-implemented using WordPress API.
* Widget map never zooms in more than default zoom setting.

= WP Geo 3.0.6.2 =

* 'Show Maps On' setting now works correctly when widget is active.
* Fixes paths if WordPress is installed in a subdirectory.

= WP Geo 3.0.6.1 =

* Include files removed (fix)

= WP Geo 3.0.6 =

* Marker Tooltip improved (can now but style via css)
* Spanish language added.

= WP Geo 3.0.5 =

* Added way to escape shortcode [wp_geo_map escape="true"]
* CSS Max-width image fixed added.
* Italian language added.
* German language updated.

= WP Geo 3.0.4 =

* Added French language support.

= WP Geo 3.0.3 =

* Added Geo Meta Tags on single post pages.
* Fixed issue when geo data was deleted in quick/bulk edit mode or when scheduled post when live.
* Fixed domain check to work with blogs in a subfolder of a domain.

= WP Geo 3.0.2 =

* Add language support.
* Various bug fixes.

= WP Geo 3.0.1 =

* Markers link to posts.
* Map scale and corner map settings now fixed.

= WP Geo 3.0 =

* Added more default control settings.
* Added custom marker images. 
* Added sidebar Widget.
* Improvements to Javascript loading including addition of external Javascript files.
* Loads jQuery to aid future plugin developments.
* No longer functions as a static class.

= WP Geo 2.1.2 =

* Added capability for feeds including georss points - for more information see http://www.georss.org. 

= WP Geo 2.1.1 =

* Adds external CSS stylesheet to fix image background colours on certain themes.
* Added 'wp_geo_map' class to map divs so they can be styled.

= WP Geo 2.1 =

* Added setting for default map zoom.
* Map in admin now defaults to preferred map type.
* Added screenshots.

= WP Geo 2.0 =

* Added options to display posts maps on category and archive pages.

= WP Geo 1.3 =

* Added options to set default width and height for maps.

= WP Geo 1.2 =

* Added [wp_geo_map] Shortcode to add map within post content.

= WP Geo 1.1 =

* Added option to set map type.
* Added option to set wether maps appear at the top or bottom of posts.

== Upgrade Notice ==

= 3.4 =
Use PHP 5 class constructors (compatibility with WordPress 4.3). Escape HTML and attributes.

= 3.3.9 =
Security fix: Escape URLs that use add_query_arg() or remove_query_arg(). Also prevent widgets from overwriting global $post variable.

= 3.3.8 =
Fixed a JavaScript error that was breaking other scripts and Google Maps API v3 URL does not require API key.

= 3.3.7 =
Only load admin JavaScript on edit post pages - fixes Jetpack plugin conflict.

= 3.3.6 =
Fix tooltip titles.

= 3.3.5 =
Workaround for when blog is non-ssl but the admin-page is and several new filters and parameters.

= 3.3.4 =
Maps use default control setting if not specified. Remove old unused renderMapJS() function. Add post type support settings. Supports media.

= 3.3.3 =
Fixes pan, zoom and map type controls.

= 3.3.2 =
Fixes minimum zoom levels for maps and widgets, and Google Maps localization.

= 3.3.1 =
Some fixes including SSL support including Google sensor parameter on mobile.

= 3.3 =
Huge code changes for Google Maps API v3. You may need to update any custom code or plugins.

= 3.2.7 =
Various bug fixes. Two new shortcodes. A new category widget. 'wpgeo_show_maps' filter. Better CPT compatibility.

= 3.2.5 =
You will need to re-add your widgets after upgrading to 3.2.5!

= 2.2 =
Please note that from version 2.2 you should access any WPGeo methods using the $wpgeo instance, not using a static class such as <?php WPGeo::categoryMap(); ?>.

About

WP Geo is a location plugin for WordPress that uses Google Maps. Current stable version can be downloaded from WordPress Extend.

Resources

Stars

Watchers

Forks

Packages

No packages published