Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Kyiv (GMT+02:00)

This topic contains 3 replies, has 0 voices.

Last updated by lucianoA-2 21 hours, 27 minutes ago.

Assisted by: Andrey.

Author Posts
November 21, 2025 at 9:10 am #17597876

lucianoA-2

Background of the issue:
I am trying to translate shortcode contents on my site using WPML. I can see and translate the fields in the translation editor, but the translations are not applied to the site. I have already tried changing the content of the original site (English) slightly and updated the translation, but the modified content is still shown in English on the translated site (German). The shortcodes are included in the custom XML configuration, which allows me to see them in the translation editor. This issue occurs with shortcodes such as 'tatsu_toggle' with the attribute 'title' and 'tatsu_button' with the attribute 'button_title'. The issue can be seen on this page: hidden link.

Symptoms:
The translation of shortcode contents is not being applied to the translated site. Despite successful translation and saving, the English content is shown on the German site.

Questions:
Why are the translations of shortcode contents not being applied to the site?
How can I ensure that the translated content is displayed correctly on the translated site?

November 23, 2025 at 4:09 pm #17602355

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+02:00)

Thank you for contacting WPML support.

Could you please share how this shortcode was created?
Also, does the same issue occur if you create a new test page that contains only this button/shortcode? This will help us confirm whether the problem is related to the shortcode itself or something else on the page.

One possibility is that the XML configuration for this shortcode may be incorrect.

You can review the guidelines for translating custom shortcodes here:
https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/

November 23, 2025 at 4:40 pm #17602462

lucianoA-2

I cloned the page and translated it from scratch and got the same behavior. I also made a page only with the button, with the same behavior.
In the editor I am able to translate the button text, but it is not shown in the translated page.
Attached you find couple of screen shots.
The shortcode was registered as follows:

<wpml-config>
<shortcodes>
...
<shortcode>
<tag>tatsu_button</tag>
<attributes>
<attribute>button_text</attribute>
</attributes>
</shortcode>
...
<shortcode>
<tag>tatsu_toggle</tag>
<attributes>
<attribute>title</attribute>
</attributes>
</shortcode>
...
</shortcodes>
</wpml-config>

Test_Page_Button_Editor.png
Test_Page_Button_DE_not_translating.png
November 23, 2025 at 4:42 pm #17602492

lucianoA-2

Unfortunately this chat apparently eliminated the indents in the xml-code, but they are there and are correct. That is why I see the shortcode in the editor.