Title: Phototools: geo2wp
Author: jondor
Published: <strong>2018 年 5 月 12 日</strong>
Last modified: 2018 年 12 月 19 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/geo2wp/assets/icon.svg?rev=1874186)

# Phototools: geo2wp

 作者：[jondor](https://profiles.wordpress.org/jondor/)

[下载](https://downloads.wordpress.org/plugin/geo2wp.1.4.zip)

 * [详情](https://cn.wordpress.org/plugins/geo2wp/#description)
 * [评价](https://cn.wordpress.org/plugins/geo2wp/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/geo2wp/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/geo2wp/#developers)

 [支持](https://wordpress.org/support/plugin/geo2wp/)

## 描述

This plugin is a replacement for my old “GPS MAP Widget” plugin with the following
options:

 * In the “media” list view there’s a new column which shows the availability of
   GEO data
 * When GEOdata isn’t found yet, it checks the imagefile for the EXIF geodata and
   stores it in the metadata
 * The old metadata used by GPS MAP Widget is recognized and translated in the current
   system.
 * In the POST/PAGES overview a new column is presented with the featured image.
   Geodata is presented with an overlay icon.
 * The media/post/page edit screen shows the location map in a metabox when a featured
   images with geodata is available.
 * A widget “geo2wp map” is available.
 * Two shortcodes are available: EXIF_locationmap and EXIF_location. See below for
   the usage, which is exactly the same (oh well, minus the api key)as under GPS
   MAP Widget.
 * GeoRSS can be added to the feed (default: yes)
 * The widget is only show when there’s something to show. This also goes for the
   shortcode, when there’s no data to show, nothing is shown.
 * geo2wp handles the geodata as described in https://codex.wordpress.org/Geodata
   and as such should be compatible with other systems using these metadataa fields.
 * Every item in the medialist now has an option to reload the exif geo info.
 * In the media screen you can also bulk reload exif geo info
 * On the media edit screen the message in the widget, when no map can be shown,
   is clickable an tries to reload the exif geo info.

#### EXIF_locationmap:

 * width: width of the map image in px. default 300px
 * height: height of the mapimage in px. default 200px;
 * zoom: googlemaps zoomlevel. Default 11
 * Errors: Show error messages when no exif is available or when there’s no featured
   image. Default is false for the shortcode

Example:
 [EXIF_locationmap width=750 height=300 zoom=11 errors=false]

#### EXIF_location:

 * part: ‘latitude’, ‘longitude’ or ‘both’
 * form: ‘dec’ or ‘dms’ (decimal or Degree minute seconds. Decimal is default);

example:
 [EXIF_location part=both] will return 52.22935055,6.8737411

    ```
    [EXIF_location part=both form=dms]
    will return  52°21'13"N , 6°26'7"N
    ```

## 屏幕截图

[⌊GEO indicator in the postlist⌉⌊GEO indicator in the postlist⌉[

GEO indicator in the postlist

[⌊GEO indicator in the medialist⌉⌊GEO indicator in the medialist⌉[

GEO indicator in the medialist

[⌊Settings screen⌉⌊Settings screen⌉[

Settings screen

[⌊Map on media editscreen⌉⌊Map on media editscreen⌉[

Map on media editscreen

[⌊Map op post editscreen⌉⌊Map op post editscreen⌉[

Map op post editscreen

[⌊Widget on single photo page⌉⌊Widget on single photo page⌉[

Widget on single photo page

[⌊GeoRSS in feed⌉⌊GeoRSS in feed⌉[

GeoRSS in feed

## 安装

 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. go to the media list, filter on “unattached” and check out the menu and the bulk
    pulldown.

## 常见问题

### Why did you write this widget?

I wanted to improve “GPS MAP Widget” and learned a few new WordPress tricks.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Phototools: geo2wp」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ jondor ](https://profiles.wordpress.org/jondor/)

[帮助将「Phototools: geo2wp」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/geo2wp)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/geo2wp/)，查看[SVN仓库](https://plugins.svn.wordpress.org/geo2wp/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/geo2wp/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/geo2wp/)。

## 更新日志

#### 1.0

First release

#### 1.1

Add 3 ways to reload the geo info from exif:

 * the media item row menu
 * the media screen bulk option
 * the widget on the media edit screen when no map is shown.

#### 1.2

Left some code commented out, thus the bulk option wasn’t there..

#### 1.3

 * Removed the “enable shortcodes in widgets”. It moved to the phototools plugin
   on which the other plugins are going to depend.
 * added rel=””noopenener noreferrer” to target=_blank external links
 * Rather stupid mistake which resulted in api calls without api key.. Sorry!

#### 1.4

Fixed some compatability issues.

## 额外信息

 *  版本 **1.4**
 *  最后更新：**7 年前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 3.0.1 或更高版本 **
 *  已测试的最高版本为 **5.0.25**
 *  PHP 版本 ** 5.6 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/geo2wp/)
 * 标签
 * [geo](https://cn.wordpress.org/plugins/tags/geo/)[phototools](https://cn.wordpress.org/plugins/tags/phototools/)
   [tools](https://cn.wordpress.org/plugins/tags/tools/)
 *  [高级视图](https://cn.wordpress.org/plugins/geo2wp/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/geo2wp/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/geo2wp/reviews/)

## 贡献者

 *   [ jondor ](https://profiles.wordpress.org/jondor/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/geo2wp/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://gerhardhoogterp.nl/plugins/)