2020-11-23 06:19:23

Related Docs

Do You Need Help or Expertise?

Is editing Source Code not Your Thing? Are you in a tight Time Schedule and need to deliver a fully scalable and safe solution fast to your Clients?

Maybe you want to incorporate the Software found on TukuToi unbranded and royalty free in your Clients Projects after customizing it as per your Projects requirements?

Or eventually you need some training on any WordPress Plugin, Theme or their creation and maintenance?

ShortCode[tws_get_lang]

ShortCode to get and display WPML Language Data of any post

The [tws_get_lang] ShortCode can be used to get the current language of a post, and output either the language code, name or any of the array keys specified for it

It is great to use to conditionally check the language of a post, but also to display a custom information about the language or data related to it.

Attributes:

  • idint [post id]
  • partstring [any value as specified]

Example:

//Display the Text Direction of the current language of post 116
[tws_get_lang id="116" part="text_direction" ]
//Display the language name
[tws_get_lang id="116" part="display_name" ]
//Display the language code (very useful in WPV Conditionals)
[tws_get_lang id="116" part="language_code" ]