Since WordPress updated their iOS app to include location for posts, it came to my attention that it is fairly easy to add location to your posts – and it works nicely with the “Quick Photo” feature of the iOS WordPress app.
Unfortunately after I installed the WordPress GeoLocation plugin OnSwipe’s iPad theme stopped working for me. After some digging it turned out it is because Geolocation is overwriting the default alias of $ of jQuery which was breaking OnSwipe.
Here is how to fix that:
- Go to your admin panel
- Go to Plugins -> Editor
- In the drop-down Select plugin to edit choose “Geolocation”
- From the file list Plugin Files (just underneath the drop-down) select geolocation/geolocation.php
- Find in the code the function add_google_maps (use your browser’s search function and look for “function add_google_maps”)
- Find the line that reads:
var $j = jQuery.noConflict();either comment it out by prepending two slashes in front of it or delete it
- In its place add the following:
$j = jQuery;
- Click Update File
This should fix OnSwipe and at the same time allow your visitor to view the location tag of your posts!
Posted from Ruse, Ruse, Bulgaria.