Title: WPML Shortcodes
Author: Mirco Babini
Published: <strong>12 ສິງຫາ 2014</strong>
Last modified: 5 ມີນາ 2016

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/wpml-shortcodes/assets/banner-772x250.jpg?rev=964347)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://s.w.org/plugins/geopattern-icon/wpml-shortcodes_222222.svg)

# WPML Shortcodes

 ໂດຍ [Mirco Babini](https://profiles.wordpress.org/mirkolofio/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/wpml-shortcodes.1.2.6.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/wpml-shortcodes/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/wpml-shortcodes/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/wpml-shortcodes/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/wpml-shortcodes/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/wpml-shortcodes/)

## ຄຳອະທິບາຍ

Adds the wpml__ and wpml_e functions to your theme and the wpml__ shortcode to your
WordPress website. Make your WordPress **full WPML ready**

    ```
    <?php wpml__( $text, $context ); ?>
    <?php wpml_e( $text, $context ); ?>
    ```

Similarly to the behaviour of the __, _e functions, you must provide a string to
make translateable and a context.
 That’s it; just provide translations from the
WPML > String Translations admin panel.

Check how to use the shortcode below.

#### Usage (via code)

    ```
    <h1><?php echo wpml__( 'Title', 'wpmlshortcodes' ); ?></h1>
    <h2><?php wpml_e( 'Subtitle', 'wpmlshortcodes' ); ?></h2>
    ```

#### Usage (via shortcode)

    ```
    <h1>[wpml__ context=wpmlshortcodes]Title[/wpml__]</h1>
    <h2>[wpml__ context=wpmlshortcodes]Subtitle[/wpml__]</h2>
    ```

> **NEWS! WPML Translate (+ shortcode)**
>  Adds the wpml_if (ex wpml_translate) shortcode
> to your WPML suite. You can also use the wpml_e__if_language( $content, $lang )
> in your php code.

#### Usage (via code)

    ```
    <p><?php
    wpml_e__if_language( 'Text', 'en' );
    wpml_e__if_language( 'Testo', 'it' );
    ?></p>
    ```

#### Usage (via shortcode)

    ```
    [wpml_if lang='en']Text[/wpml_if][wpml_if lang='it']Testo[/wpml_if]
    ```

It also supports backward compatibility for wpml_translate and wpml_language from
WPML Translate Shortcode (deprecated plugin);

#### WPML Translate Shortcode > WPML Shortcodes

Welcome to the new WPML Shortcodes. This plugin is the new WPML Translate Shortcode,
became a full-translation suite.

Of course we still support WPML Translate Shortcode, with a new shortcode (1.2.4
+): wpml_if (see usage above).
 Also, we provide full backward compatibility (yes,
you can still use wpml_translate or wpml_language shortcodes) on 1.2.6+.

#### Contribute

Pull requests on [github.com](https://github.com/mircobabini/wpml-shortcodes).

Author: [Mirco Babini](http://github.com/mircobabini), **Web Developer and Mobile
App Developer; WordPress Consultant**.

## ການຕິດຕັ້ງ

Simply search for ‘WPML Shortcodes’ in the Plugins Admin page, then install and 
activate. That’s it!

## ການຣີວິວ

![](https://secure.gravatar.com/avatar/ce1bff522e45205d1175efab4c71998e993cde18716765b751e0cb5c81174ae1?
s=60&d=retro&r=g)

### 󠀁[Thanks!](https://wordpress.org/support/topic/thanks-2386/)󠁿

 [M. Dawood](https://profiles.wordpress.org/dawood92/) 5 ເມສາ 2023

Language shortcode works!

![](https://secure.gravatar.com/avatar/ecbeb04f59c75de4ca7b95b6cf155b5f68a521843b9bf980218b5f473250b699?
s=60&d=retro&r=g)

### 󠀁[Surprisingly](https://wordpress.org/support/topic/surprisingly-2/)󠁿

 [baraartur](https://profiles.wordpress.org/baraartur/) 28 ພຶດສະພາ 2021

Surprisingly, the plugin is still working !! And I inserted the shortcode into Revolution
Slider, and it changes the language there too.

![](https://secure.gravatar.com/avatar/b87644f25200be1605031513a75b9cd31cba292159b9942c7d5bec55b37b8f9c?
s=60&d=retro&r=g)

### 󠀁[Thanks](https://wordpress.org/support/topic/thanks-236/)󠁿

 [Jules Colle](https://profiles.wordpress.org/jules-colle/) 9 ພະຈິກ 2016

Thanks for this!

![](https://secure.gravatar.com/avatar/435c3d14d1f5ad8e86097cf4a509a60f689c8403cbd993e5b51c925aaf1b4d42?
s=60&d=retro&r=g)

### 󠀁[Great!](https://wordpress.org/support/topic/great-4603/)󠁿

 [victormontesdeo](https://profiles.wordpress.org/victormontesdeo/) 3 ກັນຍາ 2016

It was really helpful!

 [ ອ່ານການຣີວິວທັງໝົດ 5 ລາຍການ ](https://wordpress.org/support/plugin/wpml-shortcodes/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“WPML Shortcodes” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້ມີສ່ວນຮ່ວມໃນ
ການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ Mirco Babini ](https://profiles.wordpress.org/mirkolofio/)
 *   [ SED Web Enhancement ](https://profiles.wordpress.org/sed-web-enhancement/)

[ແປ “WPML Shortcodes” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/wpml-shortcodes)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/wpml-shortcodes/), ກວດເບິ່ງ
[ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/wpml-shortcodes/), ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/wpml-shortcodes/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/wpml-shortcodes/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.2.6

 * Add backward compatibility to wpml_translate and wpml_language from WPML Translate
   Shortcode (deprecated plugin)

#### 1.2.5

 * Fix docs
 * Support optional context in main api
 * Fallback on global context, api: wpml__main_context( $context )
 * Fix shortcodes
 * Refactoring

#### 1.2.4

 * Integration: WPML Translate Shortcode (deprecated since now)
 * usage: [wpml_if lang=it]ciao[/wpml_if][wpml_if lang=en]hello[/wpml_if]

#### 1.2.3

 * Support defined name for shortcodes

#### 1.2.2

 * Fallback (english) if WPML is missing

#### 1.2.1

 * Fix the J.D. Grimes issue (/pull/1)
 * Needed to manually restore all the translated strings

#### 1.2.0

 * Ready for the marketplace

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.2.6**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **10 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **900+**
 *  ເວີຊັນ WordPress ** 2.8 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **4.4.34**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/wpml-shortcodes/)
 * ແທັກ
 * [language](https://lo.wordpress.org/plugins/tags/language/)[translate](https://lo.wordpress.org/plugins/tags/translate/)
   [translation](https://lo.wordpress.org/plugins/tags/translation/)[translator](https://lo.wordpress.org/plugins/tags/translator/)
   [wpml](https://lo.wordpress.org/plugins/tags/wpml/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/wpml-shortcodes/advanced/)

## ການໃຫ້ຄະແນນ

 5 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 5 ລາຍການ     ](https://wordpress.org/support/plugin/wpml-shortcodes/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/wpml-shortcodes/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/wpml-shortcodes/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/wpml-shortcodes/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/wpml-shortcodes/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wpml-shortcodes/reviews/#new-post)

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/wpml-shortcodes/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ Mirco Babini ](https://profiles.wordpress.org/mirkolofio/)
 *   [ SED Web Enhancement ](https://profiles.wordpress.org/sed-web-enhancement/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/wpml-shortcodes/)

## ບໍລິຈາກ

ເຈົ້າຕ້ອງການສະໜັບສະໜູນການພັດທະນາຂອງປລັກອິນນີ້ບໍ່?

 [ ບໍລິຈາກໃຫ້ປລັກອິນນີ້ ](http://mircobabini.com/donate/)