Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Problem with Custom Fields translated with WPML
This topic contains 8 replies, has 2 voices, and was last updated by marine69 3 years, 3 months ago.
- AuthorPosts
- January 14, 2021 at 11:40 am #31130
Dear,
first of all sorry for my bad english, than,
i use Ajax Search Pro to filter the products by the Custom Fields (ACF).
In the italian version (main language) https://www.molena.com/catalogo/ it works perfectly, but in the english version (second language) https://www.molena.com/en/catalogo_en/ it does not works, it always appears “No result!”
I follow this guide https://documentation.ajaxsearchpro.com/translating-components/translating-with-wpml and i translate all the strings, also the custom fields are translated.
Can You help me?
Thank You.January 14, 2021 at 12:28 pm #31132Hi,
Sure! Thank you for the details, it helps us a lot! I noticed, that not only the filter labels, but the values also change for each product translation, for example: https://i.imgur.com/8pNZ8SR.png
However, the plugin only registers strings for the labels to translate. To resolve that, I made a tiny change to one of the plugin core files, to register the custom field values for translation as well. If you go to the WPML string translations board, you should be seeing them under the [CF Filter Value] strings now.
Best,
Please try translating those as well, so the filter values change accordingly. Let me know if that resolves the issue, and I will make this change permanent for the upcoming release.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 14, 2021 at 12:49 pm #31133I translated the new strings but it appears always “No Result””
January 14, 2021 at 1:03 pm #31134It seems to work perfectly fine on my end: https://i.imgur.com/yZgI7iw.png
Best,
Make sure to clear your site cache and browser cache, that should resolve it.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 14, 2021 at 1:17 pm #31135You cannot access this content.January 14, 2021 at 1:27 pm #31136You are welcome!
That is actually a widget title (maybe elementor?), you might have to look it up there.
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 14, 2021 at 1:30 pm #31137Perfect, Thank You
January 14, 2021 at 1:33 pm #31138You cannot access this content. Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 14, 2021 at 1:36 pm #31139You cannot access this content. - AuthorPosts
The topic ‘Problem with Custom Fields translated with WPML’ is closed to new replies.