Background of the issue:
I am trying to translate a shortcode embedded inside a text using WPML. The text 'Gemiddelde beoordeling van een 9,6!' translates to 'For 10 years, we’ve received 200+ positive reviews on Funda, with an average score of 9,6!' The 9,6 is a shortcode named [funda-rating]. I registered it as a shortcode using WPML configuration to translate it using string translations. The issue can be seen on this page: скрытая ссылка. Here is my original code: Gemiddelde beoordeling van een [funda-rating]! Het gemiddelde is gebaseerd op 80 beoordelingen in de laatste 24 maanden. Bekijk alle beoordelingen op Funda.nl.
Symptoms:
The shortcode translation breaks my code. The 9,6! gets isolated inside a different tag, breaking the layout. Instead of the expected layout, I got: Average score of 9,6!The average is based on 80 reviews in the last 24 months.View all reviews on Funda.nl.
Questions:
How can I prevent the shortcode translation from breaking my code layout?