Background of the issue:
I am trying to ensure that the shortcode [privacy_policy] correctly links to the German version of the Privacy Policy page on my site hidden link. The shortcode is translated to German as Datenschutzerklärung.
Symptoms:
The link generated by the shortcode opens the Privacy Policy page in English instead of the German one (hidden link).
Questions:
How can I make the shortcode [privacy_policy] link to the correct German page?
I have not been able to find a solution yet, but am currently working on the issue. As soon as I have a solution, or if I need any other information, I will update here in the ticket.
After much trial and error, I was able to resolve this by removing the shortcode and replacing it with the following:
Your personal data will be used to process your order, support your experience throughout this website and for other purposes described in our hidden link">Privacy Policy.
and translating the slugs in WPML -> String Translation and then resaving permalinks. Please let me know if you need any further assistance and I will be happy to help.