Skip to content Skip to sidebar

Resolved

Reported for: Contact Form 7 Multilingual 1.3.2

Topic Tags: Compatibility

Overview of the issue

Currently with Contact Form 7, forms are using a shortcode with a hash which is necessary to function properly.

However, when translating forms using WPML and Contact Form 7 Multilingual, the _hash field is not copied to the translated form. As a result, when a translated page uses a hash-based shortcode referring to a translated form, you may see a “Error: Contact form not found.” message on the front-end.

Workaround

Please, make sure of having a full site backup of your site before proceeding.

  • Go to WPML > Settings > Custom XML Configuration page.
  • Add the following XML:
    <wpml-config>
      <custom-fields>
        <custom-field action="copy">_hash</custom-field>
      </custom-fields>
    </wpml-config>
    

This will ensure the _hash value is preserved in translated versions of the form, allowing the shortcode to properly find and render the correct form.