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.

Tagged: 

This topic contains 6 replies, has 1 voice.

Last updated by Otto 1 year, 1 month ago.

Assisted by: Otto.

Author Posts
April 29, 2025 at 8:48 pm #16981017

jeremiahH

Background of the issue:
I am trying to translate the buttons filters for fields on our Search page using WPML and Search & Filter Pro. The page and button filters I need help with is hidden link. I have activated Search & Filter's WPML integration plugin and managed to translate 'Search', but I'm having issues with the filter buttons. These buttons are in a Post Attributes Field listing our custom post types, created through Advanced Custom Fields. I have the ACF Multilingual plugin activated and the integration with Search & Filter activated as well. The custom post types are set to translatable, and I have tested making 'acf-post-type' translatable and attempted to add the translated string to the custom post type title, but that didn't work. When I go to string translation, the query ID that this field is does not show, but I'm guessing it's because the buttons are custom post types. The ID of the field is 13 and in the screenshot, you see it skips it.

Symptoms:
The filter buttons on the search page are not translating, despite having the necessary plugins and settings activated.

Questions:
How can I translate the filter buttons for custom post types on the search page?
Is there a specific setting I am missing to make the custom post type titles translatable?
Are there additional steps required beyond activating the WPML integration and ACF Multilingual plugin?

May 2, 2025 at 7:29 am #16988121

Bigul

Hello,

Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned. Sorry for the late response; it was because of the holidays.

We hope you are following the steps described in the following doc:

hidden link

https://wpml.org/plugin/search-filter-pro/

Please try the workaround suggested in the following similar ticket after a site backup and let us know your feedback.

https://wpml.org/forums/topic/search-filter-pro-in-second-language/

Also, please upgrade to the latest version of WordPress (6.8.1) and WPML (4.7.4 series). Take full site backup before upgrading to the latest versions.

--
Thanks!

Bigul

May 2, 2025 at 8:21 pm #16990933

jeremiahH

Hi! We updated the WPML and WordPress.

Could the workaround be explained? It's not necessarily an ACF field, it's a custom post type that is created within ACF. The buttons are each a custom post type.

May 5, 2025 at 2:38 pm #16996896

Otto

Hello,

I apologize for the delay in responding. I will take care of this ticket; the reply time will be shorter now.

In the screenshot you shared, I see the "Retailers" string, field-attribute-placeholder (one of the buttons). And it is untranslated. Can you please try translating it? If it works, search for the other strings (using the "exact match" checkbox)

If it doesn't work, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue.
It would be better to a testing site where the issue is replicated.

The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I'll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site.
This will allow me to create a copy of your site and your content.
Once the problem is resolved I will delete the local site.

**IMPORTANT**
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields.

Best Regards,
Otto

May 5, 2025 at 7:18 pm #16998005

Otto

Hello,

Thanks.

I managed to translate the buttons following these steps:
- I went to ACF > Post Types
- Edited the Retailers post type
- Added a translation for it
- After this, in WPML > String Translation, appeared two new "Retailers" strings in the domain "acf-post-type-labels-retailers"
- I translated both, and it worked in the staging environment

I did the same for Channels and Services.

Can you please give it a try?

Best Regards,
Otto

May 5, 2025 at 8:56 pm #16998236
jeremiahH

Hi Otto,

That worked! Thank you.

I did want to ask about the "View All" button. The translation should be "Tout afficher", I just cannot find it in the String Translation to update it.

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

https://wpml.org/forums/topic/split-wpml-and-search-filter-view-all-button-translation/

May 6, 2025 at 1:07 pm #17001839

Otto

Hello,

I am glad it worked 🙂

I am closing this ticket then. For your new question, I created another one:
https://wpml.org/forums/topic/split-wpml-and-search-filter-view-all-button-translation/

I'll follow up there.

Best Regards,
Otto