WordPress.org

Support

Support » Plugins and Hacks » Intagrate Lite - Instagram Image Publishing » [Resolved] [Plugin: Instagrate to WordPress] Geotag support ?

[Resolved] [Plugin: Instagrate to WordPress] Geotag support ?

Viewing 1 replies (of 1 total)
  • 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);
    }

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: Instagrate to WordPress] Geotag support ?’ is closed to new replies.
Skip to toolbar