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 1 voice and has 0 replies.

>
Author Posts
September 20, 2024 at 1:19 pm #16203174

shahwaysR

Background of the issue:
We have a tri-lingual website under development. We have used ACF to add a custom options page, and its multilingual setup is configured as 'Different fields across languages'. We can save and store different values per language. We use get_field('my_acf_field', 'options') to query the option values. This is working fine for each of the languages.

Symptoms:
We want to query the option values for a different language, different from the active/current language. For example, if we are on the page domain.com/en/articles/my-article (active language is 'en'), we want to query the French values for those ACF option pages.

Questions:
How can we query the ACF option values for a different language, different from the active/current language?