Skip to content Skip to sidebar

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

Problem:
You are unable to save the translated slug for a custom post type in French. Despite changing the settings in WPML, the page reloads without saving the changes.
Solution:
We recommend adjusting the priority with which you register the custom post type. Instead of using a priority of 999, set it to priority 0. This change should resolve the issue with saving the translated slug.

If this solution does not apply to your situation, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket here.

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 Andrey 1 week ago.

Assisted by: Andrey.

Author Posts
March 19, 2025 at 2:35 pm

jamieA-2

Background of the issue:
I created the custom post type 'product' using the register_post_type() function with 'has-archive' => true and 'rewrite' => ['slug' => 'products']. In the WPML settings, I've set the custom post type to be translatable. I am trying to change the slug of the custom post type in French to 'produits'. We are using the last version of WPML (4.7.0) and PHP 8.3.19. We have no plugins installed other than CF7 and ACF.

Symptoms:
When I try to change the slug of the custom post type in French, the page reloads, but the changes are not saved. The same issue occurs with other custom post types.

Questions:
Why is the custom post type slug translation not saving?

March 24, 2025 at 6:54 am #16849805

Bigul

Hello,

The issue is existing after the initial troubleshooting steps. So the ticket is forwarded to our second-tier team for further debugging. We will get back to you as early as possible. Please wait.

--
Thanks!

Bigul

September 18, 2025 at 6:29 pm #17414542

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Just a follow-up on the issue you've encountered.

Our team suggests not registering the CPT with a priority of 999. Instead, setting it to priority 0 resolves the translation issue.

If you still have any questions about this, please submit a new support ticket, and we will assist you.