跳过导航
Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 7:00 – 12:00 -
- 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 13:00 – 16:00 -

支持者时区: America/Sao_Paulo (GMT-03:00)

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 severinP 2 months, 1 weeks前 更新。

协助者:: Lucas Vidal de Andrade.

作者 文章
6 11 月, 2024 于 6:09 下午 #16374261

severinP

Background of the issue:
I am trying to have an ACF field option for a color picker. I have added a local field group for 'Store settings' with a color picker field named 'accent_color' set to wpml_cf_preferences = 1 (copy). I also added an options page for 'Store settings'.

Symptoms:
When I set the color in the default language, it is not copied over to translations. The color picker field is not locked properly; it can still be clicked and edited. I expected the color set in the default language to be retrieved in other languages using get_field('accent_color', 'option'), but I get no color until I save the options again in the other language.

The main language color seems synced properly in the admin, but not in the actual options table and not with `get_field`

This issue is not present with the other fields on the option page (repeaters, email, text..)

Questions:
Why is the color not copied over to translations?
Why is the color picker field not locked properly?

主题 '[關閉] ACF Color field is not copied to translation' 已关闭,不再接受新回复。