Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing issues where HTML code is displayed instead of normal text in your translated posts on your WordPress site using WPML, such as seeing

<ul> <li>Chambres à coucher</li> <li>Salles de bains</li> <li>Salle de séjour</li> <li>Salle à manger</li> <li>Cuisine</li> <li>Terrasse</li> <li>Parking</li> <li>Piscine</li> </ul>

instead of formatted text, follow these steps to resolve it.
Solution:
1. Navigate to WPML > Settings > Posts and pages synchronization and uncheck "Send to translation the content of raw HTML cells". Then, resend the page for translation.
2. Access the body template of your site. Switch to the French version and edit the template. Locate the accordion widget and enable the "RAW HTML" setting.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If issues persist, please open a new support ticket.

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.

Tagged: 

This topic contains 9 replies, has 0 voices.

Last updated by pierreM-15 2 weeks, 1 day ago.

Assisted by: Kor.

Author Posts
June 4, 2025 at 2:58 am #17104354

pierreM-15

Background of the issue:
I am trying to translate posts on my WordPress site using WPML. The issue can be seen on this page: hidden link.

Symptoms:
Blocks like paragraph and custom fields with texts are displaying HTML code instead of normal text. For example, instead of seeing normal text, I see HTML tags like

  • Chambres à coucher
  • Salles de bains
  • Salle de séjour
  • Salle à manger
  • Cuisine
  • Terrasse
  • Parking
  • Piscine

.

Questions:
Why are my translated posts displaying HTML code instead of normal text?
How can I fix the issue of HTML code appearing in translated content?

June 5, 2025 at 6:04 am #17108571

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for contacting us. I've checked your Website here hidden link and I can see some HTML codes showing up on the content.

Could you please navigate to WPML > Settings > Posts and pages synchronization > Uncheck "Send to translation the content of raw HTML cells"? Then, resend the page for translation and let me know how it goes.

June 5, 2025 at 7:36 am #17108848

pierreM-15

Thank you, Kor
I did change the settings.
After that, as the post is already translated, do I just need to edit the translation and click COMPLETE?
Because, doing so, does not solve the issue

June 5, 2025 at 7:36 am #17108852

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I will need to closely examine your website. Therefore, I will require temporary access (WP-Admin and FTP) to a test site where the problem has been replicated, if possible. This will enable me to provide better assistance and determine if any configurations need to be modified.

Please note that it is important to have a backup for security purposes and to prevent any potential data loss. You can use the UpdraftPlus plugin (https://wordpress.org/plugins/updraftplus/) to fulfill your backup requirements.

Your upcoming reply will be treated with confidentiality and will only be visible to you and me.

✙ To resolve the issue, I may need your consent to deactivate and reactivate plugins and the theme, as well as make configuration changes on the site if necessary. This emphasizes the significance of having a backup.

June 5, 2025 at 8:04 am #17108922

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I can see the issue and it looks like you've already configured this correctly.

I' m not sure why this is happening and I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

June 5, 2025 at 4:06 pm #17111294

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. I've set up a sandbox site and copied the contents over, and everything appears to work correctly when translated: hidden link

You can access the sandbox site here: hidden link

I'll escalate this to our 2nd Tier Support so they can further investigate your staging site and determine why the translated content is displaying raw HTML code.

June 6, 2025 at 7:03 am #17112950

pierreM-15

Thank you Kor.
I will wait for your feedback.
Note that this happens only for posts, not for page or other templates.

June 6, 2025 at 6:12 pm #17114828

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your reply. Got it. I will come back to you once I've feedback.

June 9, 2025 at 6:26 pm #17119420

Kor
WPML Supporter since 08/2022

Languages: English (English )

Timezone: Asia/Singapore (GMT+08:00)

Thanks for your patience. I have a feedback and this is what you need to do to fix the issue.

1. First, access to the body template using this link hidden link

2. Switch to French and edit the template hidden link

3. Locate the accordion widget and edit it.

4. Enable the "RAW HTML" as shown in the attached screenshot.

I've recorded a screen recording for your reference hidden link

Screenshot_140.png
June 10, 2025 at 9:48 am #17121169

pierreM-15

Before I click resolved, I wanted to say thank you!
Normally with dynamic content, I always enable the raw html...and for some reason I did not...
Thank you again for your precious help.
Pierre

June 10, 2025 at 9:49 am #17121170

pierreM-15

Before I click resolved, I wanted to say thank you!
Normally with dynamic content, I always enable the raw html...and for some reason I did not...
Thank you again for your precious help.
Pierre