Skip to content Skip to sidebar

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

Problem:
You are trying to translate Contact Form 7 using WPML and facing two issues: 1) The auto-translation isn't working correctly in some languages, showing the contact form shortcode on the frontend. 2) The

<[your-email]>

placeholder is missing in the message body for secondary languages after auto-translation.
Solution:
We have released a new version of the translation editor. We recommend re-translating your Contact Form 7 to check if the issues are resolved. For the missing email placeholder, ensure that your Contact Form settings under the Mail tab are correctly configured with the message body format as: From: [your-name]

<[your-email]>

.

If this solution does not resolve your issue or seems outdated, 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 at WPML support forum.

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.

This topic contains 13 replies, has 1 voice.

Last updated by Paola Mendiburu 1 month ago.

Assisted by: Paola Mendiburu.

Author Posts
April 4, 2025 at 12:14 pm #16897319

peterJ-48

Background of the issue:
I am trying to translate Contact Form 7 using WPML. We’re facing two issues after translating the Contact Form 7. The auto-translation for Contact Form 7 isn’t working correctly in some languages, and we’re seeing the contact form shortcode on the frontend. Additionally, after auto-translation, the <[your-email]> placeholder is not appearing in the message body for secondary languages. See screenshots: hidden link and hidden link.

Symptoms:
1) Auto-Translation Issue: The auto-translation for Contact Form 7 isn’t working correctly in some languages, showing the contact form shortcode on the frontend. 2) Missing Email Placeholder: The <[your-email]> placeholder is not appearing in the message body for secondary languages after auto-translation.

Questions:
Why is the auto-translation for Contact Form 7 not working correctly in some languages?
Why is the <[your-email]> placeholder missing in the message body for secondary languages after auto-translation?

April 7, 2025 at 11:05 am #16903754

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hello,
Thank you for contacting us

1.- Please double-check if you followed all the steps described in this guide: https://wpml.org/documentation/related-projects/using-contact-form-7-with-wpml/#translate-contact-form-7-wpml

2.- Also, create a full site backup and update the WPML main plugin in Plugins -> Add new -> Commercial tab. Then double-check if the issue disappeared.

Looking forward to your message.
Regards,
Carlos

April 7, 2025 at 11:56 am #16904066

peterJ-48

Hello,

We've already followed both the first and second steps, but unfortunately, they haven't resolved the issue for us.

April 7, 2025 at 12:06 pm #16904136

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Thank you for your feedback.

Can you make sure the content within the shortcodes is not translated, except for the labels?

April 7, 2025 at 12:14 pm #16904187

peterJ-48

Hello,

As mentioned in the ticket, the Contact Form 7 shortcodes are also being translated. Please refer to the screenshots here: hidden link.

April 7, 2025 at 12:17 pm #16904191

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

Yes, I suspect that might be the cause of the issue. Can you manually edit the form in the secondary language, set the correct shortcodes and double-check if the issue disappeared?

If you need help with these steps I can do it for you 🙂

April 7, 2025 at 12:34 pm #16904245

peterJ-48

Hello,

Can you manually edit the form in the secondary language, set the correct shortcodes and double-check if the issue disappeared?
Reply : We've already manually edited and resolved the issue. However, if we re-translate in the future, we may encounter the same problem again. That’s why we raised this ticket — to bring attention to the issue and have it resolved, so we won’t need to manually edit the form in the secondary language each time.

Second issue: After auto-translation, the <[your-email]> placeholder is not appearing in the message body for secondary languages. As a result, when a customer sends a message from the form in the secondary language, we don't receive the email. Please refer to the following screenshot: hidden link.

April 7, 2025 at 12:36 pm #16904250

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi,
Thank you very much for this clarification.

I suspect this might be an isolated case, however, I would like to take a closer look at the site configuration and try to reproduce the issue. Please share the access credentials to the site in your next message that I have set private.

Confirm you created a full site backup that you can use to restore the site if necessary.

April 8, 2025 at 9:23 am #16907948

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Thank you for sharing access credentials.

However, I haven't been able to access the site because the server credentials are missing. Could you edit your previous (private) message and share the server credentials?

Note: If you open the site on incognito mode you will see the form for the missing credentials

April 8, 2025 at 10:21 am #16908320

peterJ-48

Hello,

Apologies! I was doing some debugging on the site, but it's now accessible.

April 8, 2025 at 10:54 am #16908647

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

I still need the credentials to access the site logging page. I have set your next message private so you can share the credentials.

April 8, 2025 at 11:06 am #16908721

peterJ-48

Hello,

I sent the credentials it's working fine, but I forgot to include the site authentication. In other words, I missed sending the site access details.

Could you please send me a private message, and I'll share the site access with you?

April 8, 2025 at 11:16 am #16908748

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Hi,

I have set your message private so you can share the missing credentials 🙂

April 8, 2025 at 12:07 pm #16909178

Carlos Rojas
WPML Supporter since 03/2017

Languages: English (English ) Spanish (Español )

Timezone: Europe/Madrid (GMT+02:00)

Thank you very much! This time I was able to access the site.

Before proceeding, I ask you to please create a backup of the entire site and update all the plugins and themes that appear as outdated on this link: hidden link
Outdated functionalities can cause conflicts in the code.

Once the update is complete, I kindly ask you to create a test form and check if the issue disappears when translating it.

April 9, 2025 at 8:24 am #16911860

peterJ-48

Hello,

We've updated the plugins and theme, and re-translated the contact form, but the issue persists. You can view the contact form here: hidden link. For example, the issue is visible on the frontend in the Croatian and Dutch languages.