Background of the issue:
I am working on a site under development and trying to use WPML to get translated URLs. I am using wpml_permalink in conjunction with wpml_object_id to ensure I get the translated post ID. I know many of the translated URLs were added manually.
Symptoms:
I am getting the untranslated /fr/in-english/ URL instead of the expected /fr/en-anglais/ URL.
Questions:
Are there any WPML settings that control whether the original or translated URL is returned by wpml_permalink?
Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.
Sorry for the late response because of the holidays and the high support load. It is not normal here. Thank you for your kind understanding.
If the problem remains, please share the code you are using for further checking. Hope you have added the custom code to the function.php file of the child theme (Hello Elementor Child).
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.