Перейти к содержимому Перейти к боковой панели
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Часовой пояс службы поддержки: Europe/Vienna (GMT+02:00)

Эта тема содержит 0 ответ, имеет 1 voices.

Последнее обновление: severinP 11 месяцев, 2 недели назад.

При содействии: Lucas Vidal de Andrade.

Автор Сообщения
6 ноября, 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' закрыта для новых ответов.