Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1470215

    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.

    #1470295

    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

    #1470332

    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

    #1470381

    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

    #1471649

    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

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.