WordPress.org

Ready to get started?Download WordPress

Forums

Instagrate to WordPress
[resolved] Geotag support ? (2 posts)

  1. kaliseo
    Member
    Posted 2 years ago #

    hi there,

    Instagram and WordPress provide GeoTag support, do you think you'll add this to you plugin ?

    Great job :)

    Thanks !

    http://wordpress.org/extend/plugins/instagrate-to-wordpress/

  2. kaliseo
    Member
    Posted 2 years ago #

    I fixed this like a pig by modifying the file instagrate-to-wordpress.php :

    Function get_images() Adding Line 339 & 340 :
    ,
    "lat"=> $item->location->latitude,
    "lng"=> $item->location->longitude

    Function auto_post_images() Adding Line 483 & 484 :
    $latitude=$images[$i]["lat"];
    $longitude=$images[$i]["lng"];

    Replacing Line 507 :
    $debug .= self::blog_post($title,$image, $post_date,$post_date_gmt, $latitude, $longitude);

    Function blog_post() Replacing Line 668 :
    public static function blog_post($post_title, $post_image,$post_date, $post_date_gmt, $latitude, $longitude ) {

    Adding Line 834 :
    if($latitude!=''&&$longitude!='') {
    add_post_meta($new_post, 'geo_public', '1');
    add_post_meta($new_post, 'geo_latitude', $latitude);
    add_post_meta($new_post, 'geo_longitude', $longitude);
    }

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags