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.

Tagged: 

This topic contains 10 replies, has 2 voices.

Last updated by rikardT-2 1 year, 8 months ago.

Assisted by: Osama Mersal.

Author Posts
May 19, 2023 at 1:04 pm #13679371

rikardT-2

Hi,
I have added a new post in English (site default laguage) and then translated the same into Swedish. The post is not translated to other site languages, but instead falling back to English.

The link on our News page is displaying correctly in English and other languages. and clicking goes to the post fine. EXCEPT the only language that I really want to to work for = the Swedish translation.
The perma link in the Swedish translated post looks fine. The News page however links to a ?p=10849 - post and results in a "page cannot be found". Nor is the title of the post show as translated.

News page: hidden link
Post: hidden link

Assistance most appreciated - a bit urgent...!

May 21, 2023 at 9:22 am #13684091

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

I checked the pages you mentioned and they seem to work correctly. Kindly check the following screenshots.

News: hidden link
Post: hidden link

Please let me know if you still face the issue and how to reproduce it.

May 21, 2023 at 6:13 pm #13685375

rikardT-2

Hi again,

Still issues. Reproduce like this:
1. Create a post and set a custom URL eg. /news/testurl_2023
2. Translate to another language (Swedish) - which should translate to /news/sv/testurl_2023
Then try the resp URL's...and you will find that the translated does not work.

I managed to make a translated URL working only by copying an existing post and then publishing again...

Great if you can check! Thx!

May 22, 2023 at 6:42 am #13686451

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for your update. If you need both languages to have the same permalink, please check the following steps:

1- Go to WPML-> Settings-> Translated documents options-> Page URL
2- Select "Copy from original language if translation language uses encoded URLs"
3- Click "Save"
4- Go to WPML-> Languages-> Edit Languages
5- Select "Yes" under "Encode URLs" in the Swedish language row
6- Click "Save"
7- Create a post and set a custom URL e.g /news/testurl_2023
8- Translate it to Swedish

Kindly let me know the result of the above steps.

Best regards,
Osama

May 22, 2023 at 7:00 am #13686575

rikardT-2

Hi,
Same settings already applied. Re-saved the settings, but still issue persists.

BR,
Rikard

May 22, 2023 at 7:01 am #13686579

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Rikard,

Thanks for your update. I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
– preferably to a test site where the problem has been replicated if possible –
in order to be of better help and check if some configurations might need to be changed.

Your next answer will be private, which means only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

May 29, 2023 at 7:54 am #13729425

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Rikard,

I checked the post and found that the Swedish post was not published, so I published it. (hidden link)

Would you please check it and let me know if it works correctly?

Best regards,
Osama

May 29, 2023 at 8:04 am #13729529

rikardT-2

Hi Osama,

Aha - that easy. A bit strange though... Now I added Spanish and there was no need to separately Publish this page/translation - the page and URL is there immediately.
Any logic here that I am missing?

Thanks!
Rikard

May 29, 2023 at 8:06 am #13729537

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Rikard,

I'm not sure why it wasn't published, but the translation could be initiated before publishing the default language post.

Best regards,
Osama

May 29, 2023 at 8:07 am #13729543

rikardT-2

OK! I will be more careful next time and know what to look for.
Many thanks!
/Rikard