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 3 replies, has 3 voices.

Last updated by Shekhar Bhandari 1 year, 4 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
June 27, 2023 at 4:29 pm #13904937

federicoB-41

Hello! I'm trying to translate the WP default posts slug added in WP permalink settings, please see the screenshot1.png

I went to string translation and translated the slug. The permalink is correct in the archive page but not in a single post.

Please note we need only to translate Swedish slug - English one is "blog" and Swedish one should be "blogg".

You can see the archive below where it works:
hidden link

And this is a single post where it doesn't but shows the English slug instead:
hidden link

I followed the steps in the discussion below since they were having almost the same issue:
https://wpml.org/forums/topic/i-translated-an-archive-slug-but-single-post-still-have-non-translated-url/

No luck. Still doesn't work and Permalink Manager plugin (mentioned in the link) is not in use in our site. How can I translate the slug in single posts as well?

screenshot1.png
June 27, 2023 at 9:04 pm #13906279

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi there,

Thanks for your contact.

Before your ticket is assigned to one of my colleagues, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

We might be facing an interaction issue with a third-party functionality, in this case:

- Make sure to have a complete backup
- Deactivate all the plugins that are not related to WPML
- Switch for a moment to a WordPress default theme like Twenty Twenty-one
- If the issue is gone, activate one by one to see with which one there is an interaction issue

Could you please tell us the results of this investigation?

Looking forward to your reply. Thank you.

Kind regards,
Mateus.

June 28, 2023 at 3:30 pm #13911833

federicoB-41

Hello,

Thank you for your response.

I changed back to Twenty Twenty-Three and deactivated all the plugins except WPML, unfortunately it didn't help and the issue still persists.

What to do?

June 29, 2023 at 5:25 am #13914677

Shekhar Bhandari
Supporter

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Welcome to WPML support. I am happy to assist you with your query.

Regrettably, it is not possible to translate custom strings added to the custom structure permalink.

One possible solution is to create a custom parent category with the same slug and assign it to the posts. By doing so, the slug will appear similar when using the category/post-name permalink structure.

Alternatively, this can be achieved using custom programming work, which falls outside the scope of our support.

If necessary, I recommend reaching out to one of our certified partners listed on this page: http://wpml.org/documentation/support/wpml-contractors/

Before proceeding, please review these guidelines: http://wpml.org/documentation/support/wpml-contractors/guidelines-for-people-looking-for-consulting-help/

Through this link, you can access custom assistance tailored to your project's requirements.

I apologize for not being able to provide more assistance.

Thank you.