Skip to content Skip to sidebar

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

Problem:

The client was experiencing issues with ACF fields not being translated in their products, displayed in white boxes within an Elementor Loop Grid. In the English version, these fields appeared as empty spaces. Additionally, the links within these fields did not translate correctly and targeted the original language URLs instead of the translated ones.

Solution:

We advised the client to set the 'acf_field_group' CPT to 'Not translated' in WPML > Settings > Post Types Translation, as having it set to 'translated' is not recommended. This change required re-translating the products where the ACF fields were missing.

For the links in the Elementor template, we identified a bug where the 'URL' field set to 'copy' by default was not being automatically converted.

As a temporary workaround, we suggested switching the field group to the 'Expert' mode and setting the 'URL' field translation preference to 'Translate'.

After updating the original post, the 'URL' field will appear in the translation job, allowing to manually convert the URL.

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 20 replies, has 0 voices.

Last updated by olafsO 1 week, 4 days ago.

Assisted by: Pierre Sylvestre.

Author Posts
March 3, 2026 at 10:19 am #17867659

olafsO

Damn, I was waiting for an email 😀

Right. so. In Products there are ACF fields, that are not translated. The white squares in the image - sometimes it shows one, sometimes the other. But now, even in translated products, those fields are not translated - one should have theAlc.% and Volume, the other one whatever custom text.

March 3, 2026 at 10:20 am #17867705

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: Europe/Vienna (GMT+01:00)

Hey there,

This is the ticket for the ACF issue. I'm checking and will update you.

March 3, 2026 at 11:04 am #17867923

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: Europe/Vienna (GMT+01:00)

Hello,

I suspect that adjusting the settings of the ACF fields will fix the issue. Nonetheless, since you have many products, it's best that we fix the issue with auto translation first, so we can bulk update the translations. I'll keep this ticket open and will get back to it once I hear from the devs on the other issue.

Thanks again for your patience.

March 3, 2026 at 11:06 am #17867934

olafsO

Well, it's just the one Loop Item in elementor - you update one - yo update all. OK, let's wait for that translating issue first - content is king.

March 10, 2026 at 4:35 pm #17886405

olafsO

Hello! Good morning, I guess 🙂

Can we address this?

There are come ACF fields assigned to each product and they show up in white boxes within Loop Grid.

In te english version they do not show up. It's just epty space where Alcocol percentage and volume should show up and, if the product is not a drink, there show up not the fields' content, but the placeholder.

Also the "Cenas no" [which is within the Item loop grid], does not translate as well and I cannot it in string translation.

- Let me know, will refresh the page every half an hour starting from tomorrows morning 🙂

Screenshot_189.png
Screenshot_188.png
March 10, 2026 at 4:40 pm #17886441

Pierre Sylvestre
Supporter

Languages: English (English ) French (Français ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi @olafsO,

In order to investigate the issue, could you please grant me a temporary access to your site? (if possible a test/staging site / see Privacy and Security when Providing Debug Information for Support)

Please also share a link to the product where the problem happens.

Thanks,
Pierre

March 10, 2026 at 5:02 pm #17886515

olafsO

Oh, and in the settings they are made translatable, as far as I understand.. [image]

Also the links do not translate into /en/ version and just target the latvian ones. I am adding this, because links are also written into ACF field of Custom Post type.

Screenshot_191.png
Screenshot_190.png
March 10, 2026 at 5:04 pm #17886545

olafsO

Damn, I missed your message, but my browser was open on this page. Could you ask me again, so that Private Window shows up again please?

March 10, 2026 at 5:05 pm #17886550

Pierre Sylvestre
Supporter

Languages: English (English ) French (Français ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

You can share your credentials in your next reply.

Thanks!

March 10, 2026 at 5:19 pm #17886585

olafsO

P.S. one more similarity - they are all used within loop items in loop grids in elementor templates.

March 10, 2026 at 6:26 pm #17886796

olafsO

ah, yes, this one also does not show up. also, obv, it is within product loop item template.

One of them do show - why?

Screenshot_192.png
March 10, 2026 at 6:56 pm #17886881

Pierre Sylvestre
Supporter

Languages: English (English ) French (Français ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

On your site, the `acf_field_group` CPT was set to be "translated" which is not recommended (ref: https://wpml.org/errata/advanced-custom-fields-field-group-should-be-set-as-not-translatable/).

As you had no translation of the field groups, I've changed this setting to "Not translated" (in WPML > Settings > Post Types Translation).

Then, I re-translated one of your product (hidden link">Skaidrais mežs) and now we can see the translated fields in the archive page (hidden link">NON-ALCOHOLIC BEER).

Now you may have to re-translate the products where the ACF fields are missing.

Concerning the links in the "baneri" template, the problem is the `url` field that is set to `copy` by default in the mode "Same fields across languages", so it does not show up in the translation job, and it's not automatically converted. I will escalate that as a bug.

Meanwhile you have 2 options:
1. (recommended) In "Baneri" ACF field group, convert the "URL" field into a "Link" field which is properly supported. The link URL will automatically be converted. But you'll need to re-edit all the posts using this field group.
2. In "Baneri" ACF field group, switch to the "Expert" mode and set the "URL" field translation preference to "Translate", and the field will appear in the translation job.

Let me know if this is solving your issues.

Thanks!

clear-forest.png
March 10, 2026 at 7:17 pm #17886937

olafsO

Aha! Gotcha. Will re-translate the products then - no option, I can manage.

About Baneri - will edit the group as you suggested.

Will report tomorrow back, so we can close the case 🙂

Muchos gracias!

March 11, 2026 at 7:18 am #17887543

olafsO

Morning!

1. Yes, it worked. I translated everything with "Overwrite" option and the fields show up nicely. EXCEPT that "Cenas no" part. The issue is, though, that it's defined with snippet:

add_filter('woocommerce_variable_sale_price_html', 'show_lowest_price_only', 10, 2);
add_filter('woocommerce_variable_price_html', 'show_lowest_price_only', 10, 2);

function show_lowest_price_only($price, $product) {
$min_price = $product->get_variation_price('min', true);

$price = wc_price($min_price);

$price = '<span class="price-prefix">Cenas no </span>' . $price; //tur pa vidu ierakstīt whatever kas sākumā iet

return $price;
}

What would be the best way around it?

2. Changed Banner field to "Link URL" [there is an option of Link Array" as well. Re-translated. Now the links do not show up in translated version - just images without links.
With "Link Array" option links appear, but still link to original, not translated URL.

March 11, 2026 at 9:36 am #17887967

olafsO

OK, ignore the point nr.1, I solved it with

add_filter('woocommerce_variable_sale_price_html', 'show_lowest_price_only', 10, 2);
add_filter('woocommerce_variable_price_html', 'show_lowest_price_only', 10, 2);
function show_lowest_price_only($price, $product) {
$min_price = $product->get_variation_price('min', true);

$price = wc_price($min_price);

$current_lang = apply_filters('wpml_current_language', NULL);
$prefix = ($current_lang === 'en') ? 'Prices from ' : 'Cenas no ';

$price = '<span class="price-prefix">' . $prefix . '</span>' . $price;

return $price;
}

But the banner link thing still not working and I need a help with that.