• Hey there –

    I am trying to add geolocation to the images along with the other information. I found something similar to the structure of encoding the json. They mentioned how to get the lat and long of the image. I have the following code, but it doesn’t seem to be pulling anything through.

    http://pastebin.com/SVCrTeTE

    Any thoughts on this? I am then applying it to the the image attributes:

    <img src="'.$imagesrc.'" alt="'.$image['title'].'" width="'.$imagesize.'" height="'.$imagesize.'" lat="'.$image['lat'].'" long="'.$image['lon'].'" />

    http://wordpress.org/extend/plugins/instagram-for-wordpress/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter iamdangavin

    (@iamdangavin)

    I figured it all out. updated code here:

    http://pastebin.com/wUjCgbha

    using the same to get it into the image attr:

    <img src="'.$imagesrc.'" alt="'.$image['title'].'" width="'.$imagesize.'" height="'.$imagesize.'" lat="'.$image['lat'].'" long="'.$image['lon'].'" />

    you can also add:

    location=”‘.$image[‘location’].'”
    id=”‘.$image[‘id’].'”
    date=”‘.$image[‘date’].'”

    i would like where do i apply this code.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Instagram for WordPress] Geolocation’ is closed to new replies.