Title: Compatibility with WPML
Last modified: August 24, 2016

---

# Compatibility with WPML

 *  [sgibert](https://wordpress.org/support/users/sgibert/)
 * (@sgibert)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/compatibility-with-wpml-29/)
 * Hi,
 * the plugin works great but there is a small issue with WPML.
 * WPML adds a language code to the URL which shortn.it doesn’t consider when creating
   the new link.
    Concrete case: – My default site url is: [http://www.xyz.com](http://www.xyz.com)–
   with the added language code added my WPML it becomes: [http://www.xyz.com/en](http://www.xyz.com/en)–
   the short url created is [http://www.xyz.com/JVaKxja](http://www.xyz.com/JVaKxja)
   which works but… – the_shortn_url_link and the_full_shortn_url return [http://www.xyz.com/en/JVaKxja](http://www.xyz.com/en/JVaKxja)(
   with the language code which breaks the link).
 * any possible fix?
    Thanks a ton Steven
 * [https://wordpress.org/plugins/shortnit/](https://wordpress.org/plugins/shortnit/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [sgibert](https://wordpress.org/support/users/sgibert/)
 * (@sgibert)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/compatibility-with-wpml-29/#post-6068213)
 * I found a work around but it’d be good to have compatibility for non-programmers
   😉
 *     ```
       $site_url = site_url()."/";
       			$shortn_url = get_the_shortn_url();
       			$post_shortn_url = $site_url.$shortn_url;
       			echo "<a href='$post_shortn_url'>$post_shortn_url</a>";
       ```
   
 *  Plugin Author [docofmedia](https://wordpress.org/support/users/docofmedia/)
 * (@docofmedia)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/compatibility-with-wpml-29/#post-6068361)
 * Hi sgibert,
 * Thanks for bringing this to my attention. I’ll have to look into their documentation
   and see if there’s a filter or something I can check for to add support for WPML.
 * -docofmedia

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Compatibility with WPML’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/shortnit_793333.svg)
 * [Shortn.It](https://wordpress.org/plugins/shortnit/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shortnit/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shortnit/)
 * [Active Topics](https://wordpress.org/support/plugin/shortnit/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shortnit/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shortnit/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [docofmedia](https://wordpress.org/support/users/docofmedia/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/compatibility-with-wpml-29/#post-6068361)
 * Status: not resolved