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?
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.