Hi,
We’re using
<people>
<person>
<first_name>Jack</first_name>
<last_name>Smith</last_name>
<birth_date>1990-05-15</birth_date>
</person>
<person>
<first_name>Jill</first_name>
<last_name>Johnson</last_name>
<birth_date>1985-10-22</birth_date>
</person>
</people>
in the code element. Code language is set to xml.
In the main language everything is fine but in the translation everything is stripped out.
Hey Patrick,
Thank you for the inquiry.
What do you mean by “code element”? Are you using a plugin for this? Try to wrap the XML code in a wpml-string shortcode.
// https://wpml.org/documentation/support/wpml-coding-api/shortcodes/
Best regards,
Ismael
Hi Ismael,
Sorry, I updated the two url’s. We are using the codeblock element and the setting is set to “Display codeblock as code snippet”. I’ve inserted them below the post thumbnail. On the translated page (english page) the tags are removed on the frontend.
Regards,
Patrick
Hi,
Thank you for the update.
Did you try the wpml-string shortcode? We may need to access the site to properly check the issue. Please provide the login details in the private field.
Best regards,
Ismael
Hi,
Sorry for the late response.
I don’t want to use string translation for that. I’m using the classic wpml translation und just adding the codeblock element to the translated page. You can try it on your test install. I tried it on different projects and it’s the same bug everywhere.
Regards,
Patrick