Skip Navigation

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.

Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Europe/Madrid (GMT+01:00)

This topic contains 1 reply, has 0 voices.

Last updated by Marcel 2 days, 14 hours ago.

Assisted by: Marcel.

Author Posts
March 23, 2025 at 7:10 pm #16849180

gerbenD-6

Background of the issue:
I am using the WP Booking System plugin together with the Enfold theme. WP Booking System does not support WPML, but it allows me to create the booking form in 3 languages. I need to insert a slightly different shortcode in the editor (lang=en, lang=de etc.) per language.

Symptoms:
I don't see the content field where my shortcode is entered for translation.

Questions:
How can I make the content field where my shortcode is entered translatable?

March 24, 2025 at 8:23 am #16850111

Marcel
Supporter

Languages: English (English ) German (Deutsch )

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

Hi,

To make shortcodes translatable in our editor, you need to add an XML configuration as outlined here:
https://wpml.org/documentation/support/language-configuration-files/

For example:

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>wpbs</tag>
      <attributes>
        <attribute>id</attribute>
        <attribute>language</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

After that, edit the content in your default language so the shortcode attributes appear in the WPML Translation Editor for translation.

Best Regards,
Marcel