Skip Navigation

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

Problem:
The client was experiencing issues with translations and filter functionality on their multilingual website. Specifically, when a filter was applied, some listings lost their translation, and the 'Year of Departure' filter was not displaying the correct results in translated languages.
Solution:
1. We advised the client to ensure that the custom field used in the filter, 'Départ le', is correctly translated and set up in all required languages. This involves editing the field in the page template and ensuring the correct language setting is applied.
2. For the 'Year of Departure' filter, we recommended setting the correct filter in the English language version of the page and ensuring that posts are translated independently to maintain accurate language information across different languages.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your 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 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 3 replies, has 0 voices.

Last updated by Dražen 2 weeks ago.

Assisted by: Dražen.

Author Posts
April 10, 2025 at 6:23 am #16916600

alexiaC-4

Thanks Drazen! We're getting there, I managed to have the challengers appear in translated languages. I still have some issues:

1. Once I apply a filter in English for example, part of the listing looses translation ( only when the filter is applied not before, as you can see in the attached screenshot)

2. The Year of Departure filter doesn't work. When I apply 2024, no challenger appears.

Thanks for your help,
Alexia

April 10, 2025 at 6:25 am #16916620

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

how is this custom field created, how can I edit it, and from where do you set label in default language "Départ le"?

Regards,
Drazen

April 10, 2025 at 4:45 pm #16919867

alexiaC-4

Thanks, the year filter doesn't work properly, only one challenger appears on 2024 in translated languages, when it should be almost all of them (I don't know why it works on this one)

You can edit "départ le" on this loop 922 (it's now on the live website, same credentials for you):
hidden link

I made a screenshot of the custom field "departure" that exists for each challenger in the "tourmagne" posts.

Thanks for your help.
Alexia

WPML - Custom field departure.png
WPML Loop 922 - Prefix.png
April 11, 2025 at 6:39 am #16921076

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello Alexia,

as I have said before, you need to edit 2nd language also and make sure it is correct.

1) In that loop it is correct, but you also use it on your page template, so please edit there change in EN, and it works fine. I tested with departure:

hidden link

2) You need to set correct filter in EN language in same page, I have set it to departure date (en) not Fr term.

Then you also need to translate post / translate independently in order for them to exist in 2nd language and have correct language information.

I have set for first 2 and it works fine now.

Regards,
Drazen