Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are trying to translate shortcodes, such as

[tpl_method id=1]

.
Solution:
We recommend following the guidance provided in our documentation on how to translate custom shortcodes using WPML. You can find detailed instructions and examples here: Translate Custom Shortcodes with WPML.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please do not hesitate to open a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 0 voices.

Last updated by Otto 1 week, 1 day ago.

Assisted by: Otto.

Author Posts
February 13, 2025 at 2:17 pm #16703011

witoldR

Background of the issue:
I am trying to translate shortcodes, for example: [tpl_method id="123"]. The issue can be seen on this page: hidden link

Symptoms:
The client did not specify what they expected to see or what they got instead.

Questions:
How can I translate shortcodes in WPML?
Is there a specific method to handle shortcodes like [tpl_method id="123"]?

February 13, 2025 at 3:24 pm #16703403

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hi,

I think this documentation will point you in the right direction:
hidden link Custom Shortcodes with WPML">Translate Custom Shortcodes with WPML

Best Regards,
Otto

February 20, 2025 at 9:40 am #16728467

witoldR

The link does not work.
Could you give me the correct link?

February 20, 2025 at 1:33 pm #16729810

Otto
Supporter

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

I am sorry, please apologize.

Here you have the correct link:
https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/

Best Regards,
Otto