Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 12:00 – 14:00 -
- 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 17:00 – 21:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 13 replies, has 2 voices.

Last updated by andreS-25 8 months, 1 week ago.

Assigned support staff: Bigul.

Author Posts
December 30, 2022 at 7:43 pm #12734177

andreS-25

I'm trying to make it so that choices in an ACF Select Field are directly translated on the front-end when switching languages : I want the value to stay the same, but the displayed label to change.

I based my procedure on this documentation : https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/translating-acf-field-labels-and-labels-for-choices-with-wpml/#making-the-labels-for-choices-translatable

I applied the documentation to a simple ACF select field :

1. Setting the translation preference to copy
2. Specifying both a value and a label for each choice
3. Setting the return format to Label
4. Inserting and modyfing the php snippet in my theme files
5. Translating the labels through WPML String Translation

In the front-end, the translated label is not returned. In fact, I think the VALUE is displayed, although I set the return format to Label...

I've included screenshots to help you understand my problem.

Thank you for your help

Screenshot 2022-12-30 144111.png
Screenshot 2022-12-30 143810.png
Screenshot 2022-12-30 143828.png
Screenshot 2022-12-30 143425.png
January 2, 2023 at 8:37 am #12738579

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

This may be a compatibility issue and needs further checking. So a couple of requests to track this.

1) Please let us know the exact steps to reproduce the issue on your site

2) Please fill the private details fields after a full site backup{mandatroy}. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information-sharing policies.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

hidden link

--
Thanks!

Bigul

January 4, 2023 at 8:49 am #12749721

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for the login information. Please share the URL of the page/post having this issue for easy tracking.

--
Thanks!

Bigul

January 4, 2023 at 4:06 pm #12752965

andreS-25

This page, in the bottom toggle (Features), the first field (Pets Allowed) :
hidden link

Here is the link to the translated page :
hidden link

In both pages, it shows the value, but I need it to be showing the label, which is translatable

January 5, 2023 at 6:55 am #12756145

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for the updates. Now the french Realestate posts are in the trash. So it happens with all the Realestate posts translations, am I correct?

Please allow me to make a duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server. So we can troubleshoot the issue without affecting your live site.

--
Thanks!

Bigul

January 5, 2023 at 1:36 pm #12758711

andreS-25

The field is present only on Condo categorized posts for now, but this is something I would like to implement on all Realestate posts, yes.

You can go ahead and duplicate, thank you

January 5, 2023 at 10:47 pm #12761271

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for the permission and details. I made a copy of the site and debugging it now. We will get back to you soon. Please wait.

--
Thanks!

Bigul

January 9, 2023 at 4:35 pm #12779087

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

The issue is existing after a few rounds of testing. It looks like a compatibility issue. The ACF Fields are listed through Elementor templates. So one request, please upgrade to the latest version of Elementor & Elementor pro after a full site backup and check if is there any difference in the result. I am also consulting with our team for an expert opinion.

--
Thanks!

Bigul

January 9, 2023 at 7:25 pm #12779729

andreS-25

Hi Bigul,

No difference after upgrades.

January 11, 2023 at 2:03 pm #12795919

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for the feedback. This look like a compatibility issue between the *AE - Custom Field* Widget. We are trying to reproduce the issue in a fresh installation now as a part of our escalation process. Please click the following URL to access our test installation backend.

Sandbox Site URL:- hidden link

Do you have multiple site keys for Essential Addons for Elementor? If so, please register with it on the sandbox site. We can unregister it after resolving the issue.

--
Thanks!

Bigul

January 12, 2023 at 3:22 pm #12806693

andreS-25

Ok, I entered my access key for Essential Addons on your test installation.

January 13, 2023 at 7:23 am #12811241

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for activating Essential Addons for Elementor. But still, the AE Custom Field widget is not showing on the Sandbox site. Please refer to the attached images.

Does it require a premium version of AnyWhere Elementor? On the sandbox site, we have only a free version. Please check it and let us know your feedback.

--
Thanks!

Bigul

2023-01-13_12-50-18.png
2023-01-13_12-49-33.png
2023-01-13_12-48-27.png
January 20, 2023 at 9:52 pm #12862353

andreS-25

Hi,

I have activated Anywhere Elementor Pro on your test environment.

January 20, 2023 at 11:18 pm #12862457

andreS-25

My issue is not resolved, but I've decided to work without this functionnality on my website. Thank you