Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with translating the base of the permalink structure in a multilingual WordPress site using WPML. They have set up a custom permalink structure as /wiedza/%category%/%postname% and translated it to /knowledge/%category%/%postname% for English. However, the posts in English still show the original structure with /wiedza/ instead of /knowledge/.
Solution:
We explained that this issue arises due to a known limitation with WordPress and multilingual plugins like WPML, where WordPress treats parts of the permalink structure as static strings. While WPML can translate slugs for categories and posts, it struggles with dynamic translation of the base part of the URL (like /wiedza/) when it's part of a complex custom structure. Unfortunately, there is no direct solution within WPML to dynamically change the base of the URL based on the language setting.

If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your specific case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please do not hesitate to open a new support ticket at WPML support forum.

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

Last updated by Andreas W. 2 weeks ago.

Assisted by: Andreas W..

Author Posts
March 20, 2026 at 6:48 pm #17915193

Patryk

Translation of the permanent link structure. I have set:
/wiedza/%category%/%postname%

I found the administrative translation in WPML and added it to the translation /knowledge/%category%/%postname%, but the posts in English are still added with the extension /wiedza/%category%/%postname%

How to translate permanent link structure correctly?

March 21, 2026 at 9:43 pm #17916032

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Thank you for reaching out!

What you are describing is sadly a known limitation in WordPress when working with multilingual plugins like WPML.

WPML struggles with custom structures that include a base like /wiedza/ because of how WordPress handles rewrite rules. While WPML is excellent at translating the "slugs" (the actual names of the categories and posts), it cannot dynamically swap the "base" of the URL (like /wiedza/) based on the language if it's part of a complex custom structure.

Here is a breakdown of why this happens and the workarounds available:

The Problem: Static vs. Dynamic Bases
WordPress treats the string /wiedza/ in your permalink settings as a static string.

What works: WPML can translate your category names (e.g., /wiedza/science/ to /en/knowledge/science/).

What fails: WPML cannot natively turn the /wiedza/ part into /knowledge/ or /learning/ because it is hard-coded into the WordPress permalink settings.

We hope for your understanding.

Best regards
Andreas