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">
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?