Skip Navigation

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

Problem:

The client was experiencing issues with translated filters on an English archive page of a site built with JetEngine and WPML. The filters for 'Daypart', 'Age', 'Course Duration', and 'Teacher' showed incorrect values, missing options, or not functioning correctly. Despite setting the translation preferences and manually translating option labels, the filters either displayed outdated values or returned no results.

Solution:

We recommended the following steps to resolve the issues:

1. Rename all custom field IDs to ensure uniqueness and end them with '_course'.
2. Update the filters’ Query Variables to match the new field IDs.
3. Set all field translation methods to 'Copy' (not 'Translate') in WPML → Settings → Custom Fields Translation.
4. Use Dynamic Fields to output label instead of value.
5. Translate option values via WPML → String Translation.
6. Enable 'Get Choices from Field Data' with JetEngine source to fix display issues, though this might not resolve filtering problems.
7. Manually resave each course in English to ensure filters return correct results.
8. For the 'Teacher' filter, change the Data Source from Posts to Custom Fields and set the Query Variable to 'docent-naam_course'.

If these steps do not resolve the issues or if new issues arise, we 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 the problem persists, please open a new support ticket at WPML support forum for further assistance.

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 17 replies, has 2 voices.

Last updated by Bigul 6 days, 21 hours ago.

Assisted by: Bigul.

Author Posts
June 3, 2025 at 10:08 am #17101583

jeffreyB-17

Background of the issue:
I'm experiencing issues with translated filters on the English archive page of a site built with JetEngine and WPML. The Meta Field keys are identical in both languages, and translations are correctly added in the WPML editor. We already had a support ticket for this problem (https://wpml.org/forums/topic/filter-options-not-working-on-translated-archive-page-jetengine-custom-fields/) but I can't fix it with this explanation. Link to a page where the issue can be seen: hidden link

Symptoms:
Filters for Weekday, Age group, and Teacher either show partial values, no values, or the values do not return the correct results when selected. Filter 'Daypart' is showing 2 Dutch names; Overdag, Avond and 19:00 which shouldn't be there. Filter 'Age' is showing 2 filters; 18-24 years & 24+ years but both are not working. And there must be more filters, not only these 2. Filter 'Course duration' has the two Dutch filters 'Korte cursus' en 'Jaarprogramma' which shouldn't be there. Filter 'Teacher' doesn't work for all teachers. Only 'Marte Hameleers' has 1 course to filter but that's the only one.

Questions:
How can I fix the issue with the 'Daypart' filter showing incorrect values?
What steps should I take to resolve the 'Age' filter not working and missing options?
How do I remove the Dutch filters from the 'Course duration' filter?
Why is the 'Teacher' filter not working for all teachers?

June 3, 2025 at 10:31 am #17101689

jeffreyB-17

Hey, yes I still need assistance. I tried the solution of Bigul but it's too complex for me and I don't know exactly if I'm doing things good or not. That's why I contact again.

June 3, 2025 at 6:35 pm #17103777

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the updates. Could you please consider creating a staging or development site, which is a clone of the live site? This will allow us to troubleshoot the issue safely without affecting your live environment. Please let us know your thoughts.

--
Thanks!

Bigul

June 4, 2025 at 8:19 am #17105163

jeffreyB-17

But what I need is the step by step explanation for what to do to fix all this. Can you see the previous topic we talked about? That's basically the same.

June 4, 2025 at 9:38 am #17105581

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the updates. We hope you have already tried the workarounds suggested in the following threads, as these steps helped us resolve the issue on our local copies.

https://wpml.org/forums/topic/filter-options-not-working-on-translated-archive-page-jetengine-custom-fields/page/2/#16990770

https://wpml.org/forums/topic/filter-options-not-working-on-translated-archive-page-jetengine-custom-fields/page/3/#17006438

If you still need further assistance, please let us know which part of the instructions is unclear or where you are facing difficulties. We will be happy to help.

--
Thanks!

Bigul

June 4, 2025 at 11:04 am #17105966

jeffreyB-17

That's why I message you Bigul, I don't know if it worked and if these are the steps for all problems I have...

1. The first problem still occurring is that on the English filter of the 'Daypart' it gives the Dutch and English options (see attached image 1).

2. The second problem still occurring is that the English 'Age' filter doesn't give all options, just three. And all of those options don't work, they don't show any course. See attached image 2.

3. The third problem still occurring is that the English filter 'Course duration' shows both the Dutch and English options, both with some courses showing. That should be just the English version of course. See attached image 3.

4. The fourth problem which I kind of solved is that the teachers don't show when filtered on the English version. But when I save these courses in English again and fill in the teacher again, they do show. So that's just some work to save these again.

But I tried that with 'Daypart', 'Age' and 'Course duration' as well, but there are just the Dutch options to choose from. See attached image 4.

What's going wrong? What can I change, exactly, to solve this problem. Before I manually go and change all courses, I want to know this because otherwise it will be double the work for doing it again later.

SS 4.png
SS 3.png
SS 2.png
SS 1.png
June 4, 2025 at 11:13 am #17106038

jeffreyB-17

Can't I pay you guys to fix all of the filters? I'm worried now and don't know what to do anymore because it's so complex for me.

June 4, 2025 at 1:02 pm #17106478

jeffreyB-17

Hi Bigul,

Thanks again for all your support so far. After following your steps for the Weekdag filter, I’ve applied the same logic to the following custom fields:

- tijdstip-overdagavond_course (Daypart)
- duur_course (Course Duration)
- leeftijdscategorie_course (Age Category)
- docent_course (Teacher)

I’ve renamed the field IDs, updated the filters to use these new IDs, set their translation preference to “Copy” in WPML → Settings → Custom Fields Translation, and translated the option labels manually using String Translation (not glossary).

So far:

- The filter labels now appear correctly in English (e.g., “Daytime” instead of “Overdag”).

- The frontend filter UI shows the correct English options.

However, the filter functionality is still not fully working in English. Here's a breakdown of the issues:

Main Problems Still Occurring

1. Course field values in English are not saved properly
When I open the English version of a course (e.g. “Test Page 2 Anne”) and select a value like 12–14 years for leeftijdscategorie_course, it saves successfully at first and appears on the frontend.

But if I refresh the backend editor page, the value is gone again (emptied).

Even worse: on the frontend the old value (e.g. 18–24 years) is still shown, even after saving new input.

2. Filters in English return no results unless I resave the English course
I have to manually open and resave each course in English, otherwise filters like “Daypart” or “Course Duration” return no results.

Even after doing that, some filters still return outdated values or nothing at all.

3. Teacher filter (docent_course) does not show courses in English
Even when the English version of the teacher exists and is properly selected in the English version of a course, the teacher filter in English returns no results.

If I use a Dynamic Field widget to show the docent_course value, it appears on the page — but filtering still fails.

What I've Done:

Renamed all custom field IDs to end in _course, to ensure uniqueness.

Updated the filters’ Query Variables to match the new field IDs.

Set all field translation methods to Copy (not Translate).

Used Dynamic Fields (where possible) to output label instead of value.

Translated option values via WPML → String Translation.

Tried enabling “Get Choices from Field Data” with JetEngine source — this fixed display, but not filtering.

Re-saved English versions of several courses for testing.

What I Need Help With:

Why are some field values not persisting (e.g., leeftijdscategorie_course) when saving in English?

Why do the filters return no results even though the values appear to be set correctly?

Is there any extra WPML setting I need to activate for filters to read and recognize copied custom fields in the translated posts?

Could this be a compatibility issue between JetEngine’s relation fields or post object fields and WPML?

Let me know if you need admin access or if I should record a screencast to show the behavior.

Thanks again,
Jeffrey

June 5, 2025 at 7:43 pm #17112187

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the details. I am checking with our compatibility team to get an expert opinion.

It would be really helpful if you could create a staging/dev site (a copy of the live site) in the same server environment. That way, we can test and fix things one by one without changing anything on your main site. I have also enabled the private option for your next reply, so you can safely share any login details.

If possible, please send us some screencasts (screen recordings) that show the problem. This will help us understand it more clearly and discuss it with our team. Thanks a lot for your kind understanding.

--
Thanks!

Bigul

June 10, 2025 at 3:41 am #17120049

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for providing the staging site and the screencast. We are currently reviewing the issue and consulting with our compatibility team for further insights. Please note that we deleted our local copies a few days ago as part of our regular support policy.

We will get back to you with an update by tomorrow. Please wait, and sorry for the delayed response due to the holidays.

If possible, kindly share the FTP credentials for the staging site to assist with our debugging.

--
Thanks!

Bigul

June 11, 2025 at 8:29 pm #17127808

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the updates. We are still working on this and currently testing it on your staging site.

We are getting the expected results for the *Teacher* filter after making the following changes:

- Changed the Data Source from Posts to Custom Fields
- Set the Query Variable to docent-naam_course (the custom field key)

With these adjustments, the filter works correctly for newly created posts, existing posts, and after updating a post.

Please check this screencast for more details and let us know your feedback: hidden link

--
Thanks!

Bigul

June 12, 2025 at 7:55 am #17128734
jeffreyB-17

Hi Bigul,

So every teacher will work automatically now? So every new created post, existing post and after updating a post? And how about the other filters? Everything working now?

And about the EN flag switcher, why isn't that working properly all the time?

Thanks for the fast response this time, I appreciate you working on it.

Jeffrey

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/language-switcher-is-not-working-in-english-language/

June 12, 2025 at 11:01 am #17129671

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hi Jeffrey,

Thank you for the updates. Happy to know you are now getting the expected results for the Teacher filter. Yes, it should work for all existing and new posts since you have already updated them after setting the translation preference of the docent-naam_course field to Copy under WPML >> Settings >> Custom Fields Translation.

Please verify that all filters are now working as expected. The language switcher issue appears to be unrelated. We have created a new ticket for that to make follow-up easier, and will check it further and get back to you soon.

--
Thanks!

Bigul

June 12, 2025 at 12:49 pm #17130162

jeffreyB-17

Hey Bigul, perfect. But now it works on the staging environment, not on the live site. What do we have to change to make it work on the live site?

June 12, 2025 at 1:04 pm #17130229

jeffreyB-17

Here my explanation:

hidden link