Skip to content Skip to sidebar

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

Last updated by Prosenjit Barman 1 year, 10 months ago.

Assisted by: Prosenjit Barman.

Author Posts
November 1, 2023 at 12:11 am #14704373

alexandreM-28

Hi guys!

Here is my issue: I have an Elementor Pro Loop Grid and the url on my buttons does not reflect the current language.

Example: On the english version of my site, my main language, the button is set to post-url: hidden link

On the french version it should be:
hidden link

but it is: hidden link

I have translated the slug as shown on my attachement image.

To access the dev site you will need to enter the following user/pass (page is protected): rmcs/rmcs2023

The english loop is located here: hidden link
The french loop is located here: hidden link

Screenshot 2023-10-31 at 20.08.30.png
November 1, 2023 at 9:05 am #14706089

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue you're having and will try my best to assist you in this matter.

When I attempt to switch to French from a specific post, the slug in the URL displays correctly. However, the problem arises when accessing any post from the Archive page in the French language.

However, Based on the WPML Debug information, I found that the translation setting for the "obituary" post type is set to "Translatable - use translation if available or fallback to default language". This means that if a translation isn't present, the default language version of the post will be displayed instead.

This could be the reason behind the issue. As the default language posts are being used as a fallback in the French version, the link in the button remains the same. Would you please try the following and check if that helps to solve the issue?

- Please go to the 'Obituary' post type and properly translate any of the posts to 'French'.
- Once the Translation is completed, open the French archive and check the link in the button of that post. Hopefully the slug will appear correctly there.

Please let me know how it goes. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

November 1, 2023 at 2:39 pm #14708289

alexandreM-28

Ok thanks! I tried it and you are right!