• Resolved jonathantessier

    (@jonathantessier)


    I am using WPML and the GeotagPhoto plugin. I noticed the plugin does not show the icon link to the Google map if I go in another language than the default language. WPML is configured to use language parameter on my blog (i.e. https://blog.jonathantessier.com?lang=fr) and this is causing the issue.

    Apply to : GeotagPhoto Version 0.8.6
    Module : geotagphoto.php, line 195

    Replace:
    $finalpath = str_replace( get_bloginfo(‘home‘), ABSPATH, $image);

    By :
    $finalpath = str_replace( get_bloginfo(‘wpurl‘), ABSPATH, $image);

    Note : “home” is deprecated for the get_bloginfo function and it is returning the language parameter that cause the issue. “wpurl” does not return it. This should fix the problem.

    https://www.ads-software.com/extend/plugins/geotagphoto/

Viewing 1 replies (of 1 total)
  • Thread Starter jonathantessier

    (@jonathantessier)

    You need to to the same change at lines 210 and 218 for thickbox to work with WPML plugin :

    Replace :
    210 $pathtofull = str_replace( ABSPATH, get_bloginfo(‘home‘), $fullsizepath); //path for thickbox image
    218 $pathtofull = str_replace( ABSPATH, get_bloginfo(‘home‘), $fullsizepath); //path for thickbox image

    By :
    210 $pathtofull = str_replace( ABSPATH, get_bloginfo(‘wpurl‘), $fullsizepath); //path for thickbox image
    218 $pathtofull = str_replace( ABSPATH, get_bloginfo(‘wpurl‘), $fullsizepath); //path for thickbox image

Viewing 1 replies (of 1 total)
  • The topic ‘GeotagPhoto wordpress plugin not working with other languages using WPML plugin.’ is closed to new replies.