Title: current language shortcode
Last modified: June 17, 2020

---

# current language shortcode

 *  Resolved [bredchic](https://wordpress.org/support/users/bredchic/)
 * (@bredchic)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/current-language-shortcode/)
 * Hi. I need to add the language variable into a link. Probably the best way would
   be with a shortcode.
 * What I need to achieve is to display a widget in the selected language. Part 
   of the widget code is:
    <script id=”travelmyth-info” src=”[https://www.travelmyth.com/hotel-information.js?hid=xxxx&l=en&c=h&w=400&h=400″&gt](https://www.travelmyth.com/hotel-information.js?hid=xxxx&l=en&c=h&w=400&h=400″&gt);
 * and I was thinking about something like
    <script id=”travelmyth-info” src=”[https://www.travelmyth.com/hotel-information.js?hid=15685&l=%5Bcurrent-language%5D&c=h&w=400&h=400″&gt](https://www.travelmyth.com/hotel-information.js?hid=15685&l=%5Bcurrent-language%5D&c=h&w=400&h=400″&gt);
 * is it possible?
    I would check here, but the link is not working: [http://trac.transposh.org/wiki/ShortCodes](http://trac.transposh.org/wiki/ShortCodes)
 * Thanks!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcurrent-language-shortcode%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [oferwald](https://wordpress.org/support/users/oferwald/)
 * (@oferwald)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/current-language-shortcode/#post-12999723)
 * Hi,
 * The link should be working, I will recheck, however – the shortcode you are looking
   for is:
    [tpe mylang] will output the current language
 *  Thread Starter [bredchic](https://wordpress.org/support/users/bredchic/)
 * (@bredchic)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/current-language-shortcode/#post-13001808)
 * Hi thanks.
    I am afraid it doesn’t work. Just for you to check, I’ve placed <
   p>[tpe mylang]</p> on the bottom of the homepage, but nothing comes up
 *  Thread Starter [bredchic](https://wordpress.org/support/users/bredchic/)
 * (@bredchic)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/current-language-shortcode/#post-13002433)
 * It works after an upgrade! Thanks

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

The topic ‘current language shortcode’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/transposh-translation-filter-for-
   wordpress_495166.svg)
 * [Transposh WordPress Translation](https://wordpress.org/plugins/transposh-translation-filter-for-wordpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/transposh-translation-filter-for-wordpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/transposh-translation-filter-for-wordpress/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [bredchic](https://wordpress.org/support/users/bredchic/)
 * Last activity: [5 years, 11 months ago](https://wordpress.org/support/topic/current-language-shortcode/#post-13002433)
 * Status: resolved