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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 -
- - - - - - -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 0 replies, has 0 voices.

Last updated by Waqas Bin Hasan 1 week, 1 day ago.

Assisted by: Waqas Bin Hasan.

Author Posts
January 14, 2025 at 10:43 am

rastislavZ-2

Background of the issue:
I am trying to translate custom category slugs. The issue can be seen on this page: hidden link

Symptoms:
I expected to see 'category-references' for the slug, but instead, I got 'kategoria-referencie'.

Questions:
How can I correctly translate custom category slugs?

January 14, 2025 at 11:05 am
January 14, 2025 at 11:06 am #16592492

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Reference to our recent chat, please let me know when you've taken the fresh backup so I can then login and check for the issue.

Regards.

January 14, 2025 at 11:45 am #16592640

rastislavZ-2

Hello, I have made a backup. Please check now.

January 14, 2025 at 1:32 pm #16593260

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I checked for the issue and looks like a page named "Referencie" is having the slug which is being served as this custom post type's taxonomy base-slug at hidden link (see attached).

If you change the slug of this page to match the category's slug (kategoria-referencie), then it 'll load fine at hidden link. Same is the case with the translations of this taxonomy. Please follow these steps:

- Open the page "Referencie" for editing in default language.
- Edit the slug and use the taxonomy's base slug in default language (i.e. kategoria-referencie).
- Save.
- You can now either update translations and in translation editor search for that slug and correct as per the other language base slug for this taxonomy (i.e. category-references for English and kategorie-referenzen for German) and complete the translations.
- Or, can switch to other languages from top admin bar.
- Click "edit anyway".
- Correct the slug as mentioned above and save.
- Finally resave the permalinks.

And it should fix the problem.

referencie.jpg
January 14, 2025 at 1:52 pm #16593315

rastislavZ-2

Hello,

Why would the Referencie page and it's slug be the problem, when my taxonomy is named differently than the page? I don't want to change the Referencie page slug.

Not sure where the conflict is?

Best regards

January 15, 2025 at 6:37 am #16595612

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Of course, that's not ideal, but my first suspect is that page is somehow acting as an archive. Although it is clearly a page (post type = page).

I understand your concern and 'll investigate more, but unfortunately this is a live site and I can't do much in there.

Can you provide a staging or test site by copying the live site? So I can then check by deactivating plugins, with only WPML plugins and default theme. This way we can see if issue is really coming from WPML or is any other part of the site is creating a conflict (i.e. a plugin or theme).

I've set your next reply as private to share the staging/test site access safely.

IMPORTANT: If you don't see the section for providing access information, do not write in the message box or the information may appear as public.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

January 24, 2025 at 7:36 pm
January 27, 2025 at 5:28 am #16635868

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access but due to some security restrictions by GeoIP filter I'm unable to reach the WP Admin (although credentials worked fine) - please see attached.

I've also tried connecting via a VPN without any luck.

Please deactivate any security plugins and/or firewalls temporarily and let me know.

Screenshot 2025-01-27 102530.jpg
January 27, 2025 at 9:30 am #16636631

rastislavZ-2

Hello, please try now.

January 27, 2025 at 1:24 pm #16638018

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates, I was able to login.

I need some time to investigate the issue, however, please note that I'll be off tomorrow for a local holiday and 'll be able to check back on Wednesday and 'll update you accordingly.

Thank you for your patience and cooperation.

January 29, 2025 at 7:47 am #16644600

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for your patience and cooperation.

Looks like the  "Category Ajax Filter Pro" is not compatible with WPML (https://wpml.org/plugin/). I tried to find any existing report in our forums without any luck. We're not sure how this plugin actually works.

I recommend you to contact the plugin author and request a compatibility update. WPML offers very useful information for developers aiming to make their themes/plugins compatible. Please see https://wpml.org/documentation/support/ and https://wpml.org/documentation/support/achieving-wpml-compatibility-for-your-themes-and-plugins/ for details.

Theme and plugin authors are welcome to join WPML’s Go Global program, which helps them make their code multilingual ready. Together with WPML’s compatibility team, they can test and confirm that their theme or plugin works with WPML. See https://wpml.org/documentation/support/go-global-program/ for details and you can refer your theme/plugin provider to this as well.

January 31, 2025 at 11:57 am #16655299

rastislavZ-2

Hello, is the Category Ajax Filter Pro relevant when I just want to translate the custom post type taxonomy slug? Did you have luck translating it when the plugin was disabled?

January 31, 2025 at 1:42 pm #16655865

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Actually why I referred to that plugin because initially you mentioned that:

> The issue can be seen on this page: /en/references/
> I expected to see 'category-references' for the slug, but instead, I got 'kategoria-referencie'.

If I check that page, I don't see any 'kategoria-referencie' for the posts listed on this page, for example one of the post listed there is hidden link, which is referring to the post type's English slug(s).

I then noticed that the said page (/en/references/) is using a shortcode coming from a 3rd party plugin, to list the posts. The posts are still listed fine and using correct slugs in translations (as noted above).

While I tried to reproduce the error on your said page (/en/references/) which isn't possible without that Category Ajax Filter PRO plugin and its shortcode.

So I'll request as I did during our first chat, to record your screen showing the exact problem. And I'll try my best to further investigate it.

P.S.: I'll be off for the weekend and 'll be able to attend on Monday.