Skip Navigation

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

Problem:
The client is unable to find and translate a shortcode that links to a downloadable PDF document in different languages.
Solution:
We recommend registering the shortcode for translation. Detailed instructions on how to register and translate a shortcode can be found in our guide: Translate custom shortcodes with WPML.
To enter the configuration, navigate to WPML → Settings and click on the Custom XML Configuration tab.

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we encourage you to check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If you still need assistance, please do not hesitate to open a new support ticket. For further assistance, you can reach out to us on the 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 1 reply, has 2 voices.

Last updated by Andrey 7 months, 4 weeks ago.

Assisted by: Andrey.

Author Posts
April 8, 2024 at 9:42 am #15493382

raymondeB

Hello Andrey,

In one of my page, I have a short code linking to a PDF document that can be downloaded. It's called with a short code because I use a plugin in order to monitor how many times the PDF is downloaded.

Every language in my site has its own short code for this file, which allows the user to download it in it choice language.

I seem to be unable to find the short code using the method you suggested! Any other way to do this?

Thanks a lot 🙂

April 8, 2024 at 9:48 am #15493403

Andrey
Supporter

Languages: English (English ) Russian (Русский )

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

To translate a shortcode's content, you must first add it to the translation. To learn how to register and translate a shortcode, follow the guide provided at https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/.

You can enter the configuration by going to the WPML → Settings page and clicking the Custom XML Configuration tab