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.

This topic contains 3 replies, has 2 voices.

Last updated by Dražen 1 year, 6 months ago.

Assisted by: Dražen.

Author Posts
September 11, 2023 at 2:44 am #14372423

ryanK-11

I am trying to: display images via acf_option_pages, but whenever i go to other languages the acf fields is returning empty array.

Link to a page where the issue can be seen: hidden link (password: @2023ActStagingSite!)

I expected to see: the images i set on option_pages.

Instead, I got: empty arrray

debug2.png
debug1.png
September 12, 2023 at 7:56 am #14381131

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

as our docs says, you need to choose the correct translation mode for your options page, and then even if you want to have the same value you need to switch language and resave the page in 2nd language.

Make sure you are using our addon plugin ACFML and is activated.

- https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/translating-the-acf-options-page-custom-fields-with-wpml/#translating-options-page-custom-fields

Regards,
Drazen

September 14, 2023 at 8:41 pm #14399535

ryanK-11

Hello, Drazen.

I understand your suggested fix, but it would seem redundant, is there anything we can do that if there's no set value for the translation we fall back to the English ones like how WPML works on articles/blogs?

Cheers,
Earl.

September 15, 2023 at 5:54 am #14400625

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello Earl,

I am afraid that is how ACF options work with WPML and for now, there is no other way, then to follow my suggestion and our documentation.

Regards,
Drazen