WordPress.org

Ready to get started?Download WordPress

Forums

Instagram for WordPress
Geolocation (3 posts)

  1. iamdangavin
    Member
    Posted 1 year ago #

    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/

  2. iamdangavin
    Member
    Posted 1 year ago #

    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'].'"

  3. viadsmedia
    Member
    Posted 1 year ago #

    i would like where do i apply this code.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic