Title: GPS field(s)
Last modified: August 7, 2018

---

# GPS field(s)

 *  Resolved [jrpmedia](https://wordpress.org/support/users/jrpmedia/)
 * (@jrpmedia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/gps-fields/)
 * Can someone please explai simply how and I get the EXIF GPS latitude and longitude
   values into custom fields per piece of Media.
 * Thanks

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/gps-fields/#post-10569820)
 * Thanks for your question. You can define a custom field and populate it with 
   EXIF GPS data value into it by defining a mapping rule. MLA provides many enhanced
   GPS elements; you can find more information in the “Field-level enhanced EXIF
   GPS values” section of the Settings/Media Library Assistant Documentation tab.
   For example, to create a mapping rule for Latitude expressed as degrees, minutes
   and seconds:
    1.  Navigate to the Settings/Media Library Assistant “Custom Fields” tab.
    2.  Make sure the “Enable custom field mapping when adding new media” box is checked.
        If not, check the box and click “Save Changes”.
    3.  Scroll down to the “Add New Custom Field Rule” area below the “Enable” checkboxes.
    4.  Under the “Name” dropdown control, click “Enter new field” to create a new 
        custom field.
    5.  In the “Name” text box, give your field a name, e.g., “Latitude”.
    6.  From the Data Source dropdown list, select “- Template (see below) -”.
    7.  In the “Meta/Template” text box, enter `template:[+exif:GPS.Latitude+]`.
    8.  Click the “MLA Column” check box if you want to make the field available in
        the Media/Assistant submenu table. You can also click the “Quick Edit” and “
        Bulk Edit” check boxes to make the field available in the Media/Assistant submenu
        table Quick Edit and Bulk Edit areas if that’s useful for you.
    9.  In the “Existing Text” dropdown list, select “Replace”.
    10. In the “Format” dropdown list, select “Native”.
    11. In the “Option:” dropdown list, select “Text”.
    12. Click the “Delete NULL Values” checkbox.
    13. Leave the “Status” set to “Active” so the rule will be executed for future 
        additions to the Media Library.
    14. Click the “Add Rule” button to save your work.
 * Once the rule is created you must execute it to create the “Latitude” value for
   the items already in your Media Library:
    1. Find the “Latitude” (or your chosen field name) in the table of rules o the 
       right-hand side of the screen. If you don’t see your new rule, type the name
       you gave it in the search box above the table and click “Search Rules”.
    2. Hover your mouse in the “Name” column and click the “Execute” rollover action.
    3. Wait for the mapping process to complete.
 * I hope that gives you the information you need to get the custom field(s) you
   want. I am marking this topic resolved, but please update it if you have any 
   problems or further questions regarding the above suggestions. Thanks for your
   interest in the plugin.
 *  Thread Starter [jrpmedia](https://wordpress.org/support/users/jrpmedia/)
 * (@jrpmedia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/gps-fields/#post-10570403)
 * Thanks David for the fantastic answer/tutorial.
    I carried al that out AOK … 
   but where do I see, use or edit those custom _fields_ data? Do I see them in 
   the Media itself or a Post?
 * My ultimate goal is to copy those fields data over for another plugin to use …
 * screenshot links:
 * [https://www.dropbox.com/s/jy67bbjd39hm59h/Screen%20Shot%202018-08-08%20at%2010.11.50.png?dl=0](https://www.dropbox.com/s/jy67bbjd39hm59h/Screen%20Shot%202018-08-08%20at%2010.11.50.png?dl=0)
 * [https://www.dropbox.com/s/m0hb9hb8ftqsthz/Screen%20Shot%202018-08-08%20at%2010.12.28.png?dl=0](https://www.dropbox.com/s/m0hb9hb8ftqsthz/Screen%20Shot%202018-08-08%20at%2010.12.28.png?dl=0)
 * [https://www.dropbox.com/s/qmtocyqm7csp3ij/Screen%20Shot%202018-08-08%20at%2010.13.06.png?dl=0](https://www.dropbox.com/s/qmtocyqm7csp3ij/Screen%20Shot%202018-08-08%20at%2010.13.06.png?dl=0)
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/gps-fields/#post-10572268)
 * Thanks for your update with the positive feedback and the screen shots; very 
   helpful.
 * The custom fields are associated with the Media item itself. If you go to the
   Media/Assistant screen there are several ways to see the values. First, if you
   pull down the “Screen Options” menu at the top-right corner of the screen you
   should see `GPS_Latitude` and `GPS_Longitude` in the columns list; check the 
   boxes to the left and they will be displayed as colums in the submenu table. 
   Second, if you hover over the thumbnail in the first table column you will see
   several rollover links. You can click “Edit” to get the item’s Media/Edit Media
   screen; scroll down to the custom fields section to see/edit them. Or, you can
   click “Quick Edit” to see/edit the values right in the Media/Assistant table.
 * I regret that the custom fields are not available in the “Attachment Details”
   portion of the Media/Library Grid view.
 * You can use the custom fields or the original EXIF values in the `[mla_gallery]`
   shortcode on a post or page. For example:
 * `[mla_gallery mla_caption="{+template:Position: {+custom:GPS_Latitude+}, {+custom:
   GPS_Longitude+}+}"]`
 * or
 * `[mla_gallery mla_caption="{+template:Position: {+exif:GPS.Latitude+}, {+exif:
   GPS.Longitude+}+}"]`
 * You wrote “**_My ultimate goal is to copy those fields data over for another 
   plugin to use._**” If you can be more specific I might be able to give you some
   help with that.
 *  Thread Starter [jrpmedia](https://wordpress.org/support/users/jrpmedia/)
 * (@jrpmedia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/gps-fields/#post-10572703)
 * Thanks again David 🙂
    I now see those fields as your instructed √
 * [https://www.dropbox.com/s/bgj3eadqabu5lcd/Screen%20Shot%202018-08-08%20at%2020.57.35.png?dl=0](https://www.dropbox.com/s/bgj3eadqabu5lcd/Screen%20Shot%202018-08-08%20at%2020.57.35.png?dl=0)
 * The content of the fields also has the word ‘template:’ in them, I presume I 
   could redo them and instead of your step:
    7. In the “Meta/Template” text box,
   enter template:[+exif:GPS.Latitude+] I could do: In the “Meta/Template” text 
   box, enter [+exif:GPS.Latitude+] ??
 * [https://www.dropbox.com/s/9wp8i5w680cy0qp/Screen%20Shot%202018-08-08%20at%2020.57.57.png?dl=0](https://www.dropbox.com/s/9wp8i5w680cy0qp/Screen%20Shot%202018-08-08%20at%2020.57.57.png?dl=0)
 * “My ultimate goal is to copy those fields data over for another plugin to use.”
   
   I am using these plugins to let anyone upload a photo from their mobile: – User
   Submitted Posts – Exifography – Novo-Map Problem is, I have to manually copy 
   the GPS Data of Exifography into the Posts section of the Novo Map fields AFTER
   converting them to numeric values from the textual.
 * [https://www.dropbox.com/s/kyu5n6714s58bmy/Screen%20Shot%202018-08-08%20at%2020.57.12.png?dl=0](https://www.dropbox.com/s/kyu5n6714s58bmy/Screen%20Shot%202018-08-08%20at%2020.57.12.png?dl=0)
 * [https://www.rottenroads.co.uk](https://www.rottenroads.co.uk)
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/gps-fields/#post-10576836)
 * Thanks for your update with the good news on your progress and the additional
   information.
 * You wrote “**_The content of the fields also has the word ‘template:’ in them,
   I presume I could redo them_**“. Yes, you can use `[+exif:GPS.Latitude+]` without
   the (harmless, but useless) `template:` prefix. I regret any confusion my oversight
   caused.
 * The list of plugins you posted is very helpful. I believe you can eliminate the
   [Exifography ](https://wordpress.org/plugins/thesography/)plugin completely, 
   as suggested in this earlier support topic:
 * [Camera Exif Fetch](https://wordpress.org/support/topic/camera-exif-fetch/page/2/#post-5705083)
 * If there is any reason that will not work for you I would be interested in seeing
   if MLA can be enhanced to resolve the difficultly. I installed the [User Submitted Posts](https://wordpress.org/plugins/user-submitted-posts/)
   and [Novo-Map](https://wordpress.org/plugins/novo-map/) plugins on my test system.
   They look great, but I will have to study and experiment with them before I can
   say more. Using the Hooks (Actions and Filters) MLA supports I am confident that
   a small custom plugin could automate the entire process of populating the Novo-
   Map fields as the image is uploaded.
 * I would like to understand your application in more detail. The best way to proceed
   is by email. If you give me your contact information and I will send you an email
   address you can use to continue the dialog. You can use the Contact Us page at
   our web site:
 * [Fair Trade Judaica/Contact Us](http://fairtradejudaica.org/our-story/contact-us/)
 * I look forward to hearing from you.
 *  Thread Starter [jrpmedia](https://wordpress.org/support/users/jrpmedia/)
 * (@jrpmedia)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/gps-fields/#post-10579869)
 * Thanks David I have email you.
 *  Plugin Author [David Lingren](https://wordpress.org/support/users/dglingren/)
 * (@dglingren)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/gps-fields/#post-11070346)
 * Thanks for working with me offline to develop and test the new “MLA USP Novo-
   Map Example” plugin. The example plugin works with two other plugins:
 * [Novo-Map : your WP posts on custom google maps](https://wordpress.org/plugins/novo-map/)
 * [User Submitted Posts](https://wordpress.org/plugins/user-submitted-posts/)
 * The example plugin adds features to automatically add content to the USP posts
   and to create a Novo-Map marker with the location of the uploaded image.
 * The final version of the example plugin is included in the current MLA version.
   To install it, navigate to the Settings/Media library Assistant Documentation
   tab and click the “Example Plugins” button. You will see a table that lists all
   the example plugins and gives you a “one-click” action for installing them. Type“
   USP” in the text box and click “Search Plugins” to filter the table. You are 
   looking for the “MLA USP Novo-Map Example” plugin. Find that plugin and hover
   over the title in the left-most column. Click the “Install” rollover action, 
   then go to the WordPress Plugins/Installed Plugins submenu and activate it as
   you would any other plugin.
 * Once the plugin is active, navigate to the Settings/MLA USP Novo-Map” screen 
   to read the Documentation tab and configure the options required for your application.
 * Thanks again for working with me on this new example plugin.

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘GPS field(s)’ is closed to new replies.

 * ![](https://ps.w.org/media-library-assistant/assets/icon-256x256.png?rev=973502)
 * [Media Library Assistant](https://wordpress.org/plugins/media-library-assistant/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-assistant/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-assistant/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-assistant/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-assistant/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-assistant/reviews/)

## Tags

 * [longitude](https://wordpress.org/support/topic-tag/longitude/)

 * 7 replies
 * 2 participants
 * Last reply from: [David Lingren](https://wordpress.org/support/users/dglingren/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/gps-fields/#post-11070346)
 * Status: resolved