This thread is resolved. Here is a description of the problem and solution.
Problem:
The client needed a way to translate the attributes of a shortcode but not its content. They were using a custom XML to register the attribute for translation but couldn't find a way to exclude the content from being translated.
Solution:
We recommended using a custom XML configuration to ignore the content of the shortcode while translating its attributes. Here is the XML configuration to achieve this:
<wpml-config> <shortcodes> <shortcode> <tag ignore-content="1">my-code</tag> <attributes> <attribute>title</attribute> </attributes> </shortcode> </shortcodes> </wpml-config>
We advised the client to apply this configuration and make minor changes to the primary language page to ensure the custom XML settings take effect.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here.
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.
Our next available supporter will start replying to tickets in about 2.85 hours from now. Thank you for your understanding.
This topic contains 3 replies, has 2 voices.
Last updated by Kor 2 months, 2 weeks ago.
Assisted by: Kor.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.