Title: Update Post with EXIF data
Author: Mark Howells-Mead
Published: <strong>2015 年 11 月 26 日</strong>
Last modified: 2016 年 9 月 30 日

---

搜索插件

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

![](https://s.w.org/plugins/geopattern-icon/update-post-with-exif-data.svg)

# Update Post with EXIF data

 作者：[Mark Howells-Mead](https://profiles.wordpress.org/markhowellsmead/)

[下载](https://downloads.wordpress.org/plugin/update-post-with-exif-data.1.3.1.1.zip)

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

 [支持](https://wordpress.org/support/plugin/update-post-with-exif-data/)

## 描述

If the appropriate checkboxes are selected in the Post submit box when saving the
Post, the plugin reads the EXIF data of the Post’s _Featured Image_ and adds Post
Tags and a custom meta value “_location_” containing the serialized GPS location
data of the image.

 * If the Post has no Featured Image, or if the Featured Image’s EXIF data is incomplete,
   then nothing happens.
 * The EXIF data is read directly from the image file, not from a database entry.
 * If standard values “GPSLongitude” and “GPSLatitude” are not available in the 
   Featured Image’s EXIF data, the post will not be updated with the custom meta
   field. (A pre-existing value will not be deleted, if this happens.)
 * When saving Post Tags, the standard taxonomy `post_tag` is set. If you need to
   modify this, for example in the case of a custom taxonomy, then you can use the
   filter hook `update-post-with-exif-data/post_taxonomy` to change it.
 * If you want to see the custom meta value containing serialized GPS location data
   in the WordPress backend, you’ll need to parse the data and add this field yourself.
   A good solution for this is the “Advanced Custom Fields” plugin by Elliot Condon,
   with field type “Google Map”.
 * Developers: see the code for a WordPress action hook `update-post-with-exif-data/
   no-gps`, which fires in the event that there is no valid GPS data available in
   the Featured Image.

## 安装

 1. Upload the plugin folder to the `/wp-content/plugins/` directory
 2. 通过WordPress的的“Plugins”菜单激活插件

## 评价

![](https://secure.gravatar.com/avatar/fc86d9dfbfc88c36be834763e00759fcd59197dee28515e1e4c85204c3abe013?
s=60&d=retro&r=g)

### 󠀁[Good job!](https://wordpress.org/support/topic/good-job-651/)󠁿

 [wellbeingtips](https://profiles.wordpress.org/wellbeingtips/) 2017 年 2 月 25 
日 1 回复

Thanks!

 [ 阅读所有1条评价 ](https://wordpress.org/support/plugin/update-post-with-exif-data/reviews/)

## 贡献者及开发者

「Update Post with EXIF data」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Mark Howells-Mead ](https://profiles.wordpress.org/markhowellsmead/)

[帮助将「Update Post with EXIF data」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/update-post-with-exif-data)

### 对开发感兴趣吗?

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

## 更新日志

#### 1.3.1.1

 * Correct version number in README.

#### 1.3.1

 * Additional safeguards in the event of missing GPS data in the EXIF array.
 * Add `update-post-with-exif-data/no-gps` action hook to function `addImageLocationToPost`.

#### 1.3.0

 * **Breaking change**: filter hook `post_exif_data_taxonomy` is now renamed `update-
   post-with-exif-data/post_taxonomy`.
 * **Bugfix**: check to ensure that both GPSLongitude and GPSLatitude are set before
   updating location meta.
 * Add unique PHP namespace.
 * Comply with PSR-2 coding standards.
 * Add action to assist with debugging.
 * Extend plugin description for better clarification.

#### 1.2.2

 * Confirmation of compatibility with WordPress 4.6.

#### 1.2.1.1

 * Fix typo in README.

#### 1.2.1

 * Confirmation of compatibility with WordPress 4.5.

#### 1.2.0

 * Replace hard-coded list of customized taxonomy keys with standard taxonomy `post_tag`,
   and add filter to allow this
    to be customized by third parties.
 * Clean up code (whitespace, commenting).

#### 1.1.1

 * Corrections to version numbering in README/SVN.
 * Confirmation of support in WordPress 4.4.2.
 * No functional changes.

#### 1.1

 * Initial public version.

## 额外信息

 *  版本 **1.3.1**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 4.3 或更高版本 **
 *  已测试的最高版本为 **4.6.30**
 *  语言
 * [English (US)](https://wordpress.org/plugins/update-post-with-exif-data/)
 * 标签
 * [exif](https://cn.wordpress.org/plugins/tags/exif/)[geo](https://cn.wordpress.org/plugins/tags/geo/)
   [iptc](https://cn.wordpress.org/plugins/tags/iptc/)[location](https://cn.wordpress.org/plugins/tags/location/)
 *  [高级视图](https://cn.wordpress.org/plugins/update-post-with-exif-data/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/update-post-with-exif-data/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/update-post-with-exif-data/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/update-post-with-exif-data/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/update-post-with-exif-data/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/update-post-with-exif-data/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/update-post-with-exif-data/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/update-post-with-exif-data/reviews/)

## 贡献者

 *   [ Mark Howells-Mead ](https://profiles.wordpress.org/markhowellsmead/)

## 支持

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

 [查看支持论坛](https://wordpress.org/support/plugin/update-post-with-exif-data/)

## 捐助

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

 [ 捐助此插件 ](https://www.paypal.me/mhmli)