Hi Bobby, the reason I raised this issue is that even though I have already followed the documentation you again refer me to, I have tried various combinations of this and it does not work. Refer attached 2 images related to the below.
1. Code using the standard PAGE post and FR category slug does NOT return he EN slug as it should.
2. Instead this code returns the FR slug, which I already have. The page is here - hidden link
This should just work in my view. So what is wrong here?
When I visit the page in French and click on Find Sessions for "Therapies Corporelles" it is taking me to EN. Are you currently using a redirect for this URL?
As an alternative to custom code I wonder, what are your results if you use WPML Sticky Links along with these steps from our documentation
The topic ‘[Closed] Custom code for finding translated slug’ is closed to new replies.
Manage Cookie Consent
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.