Skip to content Skip to sidebar

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

Problem:
The main content of the site, created using the Shortcodes Ultimate plugin, is not being translated.
Solution:
If you're experiencing this issue, we recommend registering the shortcode for translation before translating the page. For instance, you can register the shortcode by adding the following code to WPML-> Settings-> Custom XML tab:

<wpml-config><br />  <shortcodes><br />    <shortcode><br />      <tag>su_service</tag><br />      <attributes><br />        <attribute>title</attribute><br />      </attributes><br />    </shortcode><br />  </shortcodes><br /></wpml-config>

After adding this code, please update the page in the default language. For further guidance on registering shortcodes, check these documentation links:

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. Should you need further assistance, please do not hesitate to open 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 3 replies, has 2 voices.

Last updated by Osama Mersal 1 year, 7 months ago.

Assisted by: Osama Mersal.

Author Posts
June 5, 2024 at 6:07 am #15704904

denisK-21

The main content of the site is made using the Shortcodes Ultimate plugin. This content is not translated.

June 5, 2024 at 7:29 am #15705300

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

The Shortcode Ultimate plugin is not officially compatible with WPML. Kindly check our compatibility list here. (https://wpml.org/plugin/)

Please log in to this sandbox site and install the plugin. (hidden link)

After that, please create a test page containing shortcode content to replicate the issue.

If the issue is reproducible, please let me know how to reproduce it so I can check it and consult our compatibility team.

Best regards,
Osama

June 5, 2024 at 9:13 am #15705903

denisK-21

I'm trying to reproduce the problem, but I don't have credits for automatic translation.

I added a test page with a shortcode

Screenshot_38.png
June 5, 2024 at 9:22 am #15705944

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for replicating the issue. The shortcode needs to be registered for translation before translating the page.

For example, I registered the shortcode you used on the sandbox site by adding the following code to WPML-> Settings-> Custom XML tab.

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>su_service</tag>
      <attributes>
        <attribute>title</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>

Kindly check the translated page. (hidden link)

Please note that you need to update the page in the default language after registering the shortcode.

Kindly check these guides to know more about registering shortcodes.

1- https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/

2- https://wpml.org/documentation/support/language-configuration-files/

Best regards,
Osama

June 8, 2024 at 5:11 am #15718025

denisK-21

Thanks, it works