Skip to content Skip to sidebar

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
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

Supporter timezone: Asia/Jerusalem (GMT+03:00)

Tagged: 

This topic contains 10 replies, has 0 voices.

Last updated by Itamar 1 week ago.

Assisted by: Itamar.

Author Posts
July 3, 2025 at 2:04 pm

andrea

Background of the issue:
I'm trying to update the slug of a custom post type on my site hidden link using WPML, but the changes won't save.

Symptoms:
The WPML settings are not saving when I attempt to update the slug of a custom post type.

Questions:
Why are the changes to the custom post type slug not saving in WPML?

July 3, 2025 at 3:37 pm
July 3, 2025 at 5:06 pm #17198970

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I'm consulting our second-tier supporters about this case, and when I have their answer, I'll get back to you here.

I appreciate your patience.
Itamar.

July 6, 2025 at 4:22 pm #17205181

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Our second-tier supporter investigated the issue with the JetEngine "type of machine" filter and found the root cause. Here are his findings.

Currently, the filter is based on a custom field called tipologia, which is set up as a select field with a label and a value.

The label is what visitors see on the site, and it should be translated.

The value (the data actually saved in the database) should not be translated, so that filtering works properly across all languages.

On your site, the tipologia custom field is incorrectly set to Translate, which causes the values to differ between languages (e.g., "Centralizzato" in Italian and "Centralized" in English). As a result, the filter fails because it looks for the Italian value ("Centralizzato") even on the English version.

Recommended solution:
1. Change the translation setting for the tipologia custom field from Translate to Copy. This ensures the field value stays the same across all languages.
2. Once you update this setting, the existing product data in English will still contain the wrong values ("Centralized" instead of "Centralizzato").
3. To fix this, the data needs to be corrected — either by re-translating the products or, more efficiently, by running a database query to update the field values automatically.

If you’d like, we can guide you through changing the field settings and help prepare the query to fix the existing data.

Please let us know how you'd like to proceed, and we’ll be happy to assist you further!

Regards,
Itamar.

July 7, 2025 at 1:47 pm #17209133

andrea

Thanks for the help, if i understood correctly this way i will have the italian world in the url, right?

if so, there's a way to fix this and have it translated for SEO?

thank you

July 8, 2025 at 7:06 am #17211948

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I think it will not affect SEO. However, to confirm, I'm consulting with our second-tier supporter regarding your inquiry.

Regards,
Itamar.

July 8, 2025 at 8:33 am #17212468

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

I have a reply from our second-tier supporter.

Yes, it will be the same word for both languages, meaning that "Centralizzato" (the last word in the URL) will remain "Centralizzato" in English as well. Please see the attached screenshot.

Some other word or code or even just numbers could be used, but they must be the same in both languages; the filtering is based on what is stored in the database, and the JetEngine Filters code facilitates displaying different labels in different languages, but not passing different filter values for different languages.

Regarding your SEO concern, our second-tier supporter states that he is not an expert in SEO, but he believes that rankings nowadays will be determined by the page content, rather than the specific name of a URL parameter value.

Regards,
Itamar.

2025-07-08_11-28-15.jpg
July 8, 2025 at 12:01 pm #17213609

andrea

Thanks!

last question, how do i "by running a database query to update the field values automatically. ?

July 8, 2025 at 7:19 pm #17215960

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Sure,

I'll get back to you with the query to run.

I appreciate your patience.
Itamar.

July 10, 2025 at 8:36 am #17222483

andrea

Hi there, thank you, any news about that?

July 10, 2025 at 8:46 am #17222514

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

Hi,

Our second-tier supporter attempted to access your site but was unable to do so. He wants to double-check the contents of the database before proposing the query. Can you please share access to your site again? We may also need to install a plugin like WP phpMyAdmin. Please let us know if you agree. I'm enabling a private message for the following reply.

Thanks,
Itamar.

July 10, 2025 at 8:52 am #17222541

Itamar
WPML Supporter since 02/2016

Languages: English (English )

Timezone: Asia/Jerusalem (GMT+03:00)

The private message is enabled now.