
WPML Translate Shortcode
by Mirco Babini on WordPress.org
Adds the wpml_translate shortcode to your shortcode suite. You can also use the wpml_text_if_language( $lang, $content ) in your php code.
(6)
Adds the wpml_translate shortcode to your shortcode suite. You can also use the wpml_text_if_language( $lang, $content ) in your php code.
Usage (via code)
echo wpml_text_if_language( ‘en’, ‘Text’ ); echo wpml_text_if_language( ‘it’, ‘Testo’ );
Usage (via shortcode)
[wpml_translate lang=’en’]Text[/wpml_translate][wpml_translate lang=’it’]Testo[/wpml_translate]
Alias
- wpml_language is an alias for wpml_translate shortcode
- code and language are alias for lang attribute
Contribute
If you wanna contribute, pull requests on github.com.
Developed by Mirco Babini, WordPress Consultant, Web Developer and Data Lover.
Active installations100+
Weekly downloads
15+36.36%
Version1.0.1
Last updated3/4/2016
WordPress version2.8
Tested up to3.7.41
Tags
languagetranslatetranslationtranslatorwpml