Skip Navigation

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 0 voices.

Last updated by rayB-4 2 weeks, 6 days ago.

Author Posts
April 4, 2025 at 12:24 am #16894918

rayB-4

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?

April 7, 2025 at 8:14 am #16902754

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

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.

We hope you are following these docs: https://wpml.org/pt-br/wpml-hook/wpml_permalink/ (especially Example 2)

https://wpml.org/wpml-hook/wpml_object_id/

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).

--
Thanks!

Bigul

April 7, 2025 at 5:57 pm #16905608

rayB-4

Thank you for your assistance.