This thread is resolved. Here is a description of the problem and solution.
Problem: The client needed assistance with an issue related to the translation of custom field labels or the code in the filter functionality that wasn't showing the translated labels. Solution: 1. Translate ACF fields labels in WPML > String Translation. 2. Set ACF Groups to "Expert" and set the checkbox/radio field to "Translate". 3. Edit the filter if the field name was changed. 4. Go to WPML > Settings > Custom fields translation and set the translation preference for wpc_filter_set_post_type and wpc_filter_set_query_vars to "COPY". 5. Edit translations in "Posts" to translate the field. 6. Create a Divi template in English with the shortcode for the filter (e.g., [fe_widget id="65"]). 7. Translate that template into French.
If this solution does not apply to your case, because it might be outdated or not relevant to your specific situation, we recommend opening a new support ticket. We also highly recommend checking related 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 contact us through the 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.
Carlos Rojas was helping me out with an issue regarding Filter Everything, but the ticket was closed. This was the last message (reply #15332364):
Hi Tamara,
I've checked the site and I'm not quite sure if the issue is on the translation of the custom field labels or the code in the filter functionality that doesn't show the translated labels.
In order to isolate the cause of the issue and rule out any other possible cause, I have created a Sandbox site with a new WordPress installation + WPML + ACF that you can access using this link: (...)
Please create one or two custom fields (you can use Posts instead of the CPT Crane), create a filter and check if the issue disappeared.
Looking forward to your message
Unfortunately, the link to the sandbox expired so I wasn't able to test this.
I have created a new sandbox site for you in case you need it: hidden link
But I read their documentation here: hidden link
And I think you can solve the issue by doing the following:
In "WPML > Settings > Post types translations"
- Filter-sets must be set as Translatable
- Filters must be set as Not translated
Then edit you filter in the original language.
- In the right sidebar you can deactivate our translation editor and switch to the WP editor
Ref: hidden link
- Last, create your translation in the WP editor
Thank you for your reply. I followed the steps you suggested but that's what I tried before already, so no difference. I checked out the sandbox but there's no ACF on it, so I can't try what Carlos asked me to do.
I'll get in touch with the Filter Everything team as well, maybe they have experienced this issue before.
Now I discovered a different issue. When adding a new crane (=custom post type) to the website and adding translation, apparently it doesn't show it when going to the French version of the page. See image 1, the labels are shown correctly in French but it says 'static on screw jacks' and below also 'yes' and 'no' instead of the French translation.
hidden link
However, when checking out the string translations in WPML, there is a French translation for 'static on screw jacks' (see image 2).
It seems that translations specific to the post are shown correctly (the 'résumé' at the bottom is in French and is entered in an open text field specifically for this crane) but not the standard translations that are specified in ACF as options to select (image 3).
Feel free to install any plugin needed to reproduce the issue on sandbox. I installed WPML, String Translation, ACF and ACFML for you already. You can add Filter everything now and recreate the issue.
By the way I had a similar case this week with JetEngine Filters. In that specific case the radio field had to be translated (and not copy which is the default settings).
Once the sandbox is set, you can try to change the translation preference of that ACF group from "Same fields across languages" to "Expert" and then edit the translation preference of that field from "Copy" to "Translate".
Please let me know when the sandbox is ready so I can have a look and test it out.
Our plugins are not working with string translation for the filter terms, as they get from the database and cache with the inner cache in order to provide the most optimized speed results. So you need to make translations for those categories in each language with different names.
I asked for more detailed help, but I think it might come down to the same thing you suggested?
I added Filter Everything and the Divi theme (because I'm not used to working without). I added a field group with two fields in ACF and added two posts.
I set the preference of the ACF group to Expert, but I'm not sure how to continue then.
I tried to add the Filter Everything widget [fe_widget] to the blog overview page but it's not showing and I'm not sure how to get this to work (I had the same problem with my website, that's why I bought the FE-pro plugin but here it's the free version). So for now, I can't test the filter.
Either way, the problem is showing on the French page of my two posts:
Category: Grue mobile
Execution: on anchor
'Grue mobile' is showing correctly, but 'on anchor' isn't translated.
Thank you for checking if you can resolve this issue with the Expert function in ACF!
Thanks for setting up the sandbox site. I made some changes to make it work. Here is a video that explains what to do: hidden link
In short:
- Translate ACF fields labels in "WPML > String Translation"
- Set your ACF Groups to "Expert" and set the checkbox/radio field to "Translate"
- Edit your filter accordingly (in case you changed the field name)
- Go to "WPML > Settings > Custom fields translation" and set the translation preference for "wpc_filter_set_post_type" and "wpc_filter_set_query_vars" to "COPY"
- Go to "Posts" and edit your translations, you will be able to translate the field now
- Create a Divi template in English with the shortcode for the filter (here [fe_widget id="65" ])
- Translate that template into French