Skip Navigation

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

Problem:
The client has translated ACF fields for a custom post type 'accommodaties' but the translations are not showing on the English version of the site.

Solution:
We recommend the following steps to resolve the issue:
1. Open the

/wp-content/plugins/wp-grid-builder/frontend/facets/class-select.php

file.
2. Inside

Select::render_options()

, around line 142, replace the code snippet with the provided workaround that includes WPML filters for registering and translating strings.
3. Open the

/wp-content/plugins/wp-grid-builder/frontend/facets/class-checkbox.php

file.
4. Inside

Checkbox::render_checkbox()

, around line 339, replace the code snippet with the provided workaround similar to step 2.
5. Visit the page with the facets in the original language to register the strings.
6. Go to WPML > String Translation and translate the strings.

Before making these changes, ensure to back up your database. Additionally, if the default language on the website is Dutch and the strings are registered in English, the language of the string may need to be changed to Dutch before translating. For guidance on changing the source language of strings, refer to the documentation.

Please note that this solution might be outdated or not applicable to your case. If the issue persists, 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 needed, do not hesitate to open a new support ticket 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.

This topic contains 17 replies, has 3 voices.

Last updated by Osama Mersal 4 months, 3 weeks ago.

Assisted by: Osama Mersal.

Author Posts
April 29, 2024 at 11:02 am #15576677

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

These files will be overwritten when the plugin is updated, so please save this workaround to apply it after updating the plugin.

Also, please contact the plugin author and let him know our findings.

Best regards,
Osama

May 3, 2024 at 1:04 pm #15591417

athinaK-2

Hi there!

I spoke with the WP Grid builder support. They said the following:

In order to make it work properly, all content (posts, terms, custom fields, etc.) must exist in each language.Furthermore, in each post, you must set up the correct terms in the appropriate language and the relevant custom field in the corresponding language. Once this is done, you need to reindex all facets to consider the changes.

I am not sure how to make each content exist in all the languages. I thought translating them was enough but they say its not.

Hopefully, you can help me explain how/where to make all the content exist in each language.

Thank you.

May 3, 2024 at 5:42 pm #15592417

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+03:00)

Hi,

You can check the translated content from WPML-> Translation Management and WPML-> Taxonomy Translations.

Also, our compatibility team has emailed the plugin author to implement the fix in future versions.

Best regards,
Osama

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.