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.

This topic contains 0 replies, has 1 voice.

Last updated by robertL-58 1 month, 1 week ago.

Author Posts
November 10, 2025 at 3:12 pm #17563132

robertL-58

Background of the issue:
I am trying to use the wpml_language_switcher shortcode to display a language switcher on my site. The shortcode is supposed to execute twig code to output language options. I have updated my site with the latest WPML version, and the issue can be seen on this page: hidden link. Here is the shortcode I am using: [wpml_language_switcher] <div class="{{ css_classes }} my-custom-switcher">

</div> [/wpml_language_switcher].

Symptoms:
The wpml_language_switcher shortcode no longer works as expected. Instead of executing the twig code, it just outputs the two languages without the expected formatting. I expected to see: EN | GA. Instead, I got a different HTML structure with class names like wpml-ls-statics-shortcode_actions and wpml-ls-legacy-list-horizontal.

Questions:
Why is the wpml_language_switcher shortcode not executing the twig code as expected?
Is there a breaking change in the latest WPML update affecting the shortcode?

November 10, 2025 at 3:48 pm #17563297

robertL-58

I see twig support is gone.

If that's the case; your documentation is out of date.

https://wpml.org/documentation/support/wpml-coding-api/shortcodes/

Thanks