Skip to content Skip to sidebar

This topic contains 0 reply, has 1 voice.

Last updated by marcoM-136 1 year, 7 months ago.

Assisted by: Noman.

Author Posts
December 6, 2023 at 11:13 am #15006929

marcoM-136

'm referring to this guide:

https://wpml.org/documentation/support/enabling-text-translation-for-themes-not-compatible-with-wpml/

And it works correctly. I find it difficult when I have to act on a call to a shortcode. I'll explain:

In my code I have this string:

echo do_shortcode('[wd_asp id=1]');

I need to change the shortcode call based on the language (change the ID)

How should the command be written to find it in the "string locator"?

Thank you.