ACF Options For Polylang
Are you using Advanced Custom Fields for option pages and Polylang for your multilingual site? Polylang does not natively support ACF Option Pages, so option values are shared across all languages. This plugin improves that: once activated, you can set different values per language. Values are store
Are you using Advanced Custom Fields for option pages and Polylang for your multilingual site?
Polylang does not natively support ACF Option Pages, so option values are shared across all languages. This plugin improves that: once activated, you can set different values per language. Values are stored per language in the database and the correct one is loaded according to the current Polylang language. If a value isn’t set for a language, the “All languages” value is used by default.
Note: On activation, existing option values become temporarily unavailable (but remain in the database); you can recover them by deactivating the plugin. To edit options for a language, use the Polylang language switcher in the admin bar before opening the options page.
Requirements: WordPress 6.0+, PHP 7.4–8.4, Advanced Custom Fields 5.6.0+, Polylang (tested up to 3.7.7).
For full documentation (usage, filters, API, excluding pages, default fallback, loading untranslated values), see the project README on GitHub .
A closer look.
Activate and configure Polylang, then activate ACF Options For Polylang.
WordPress
- 01Install via the built-in plugin installer, then activate in the “Plugins” screen.
- 02Or place the acf-options-for-polylang folder in wp-content/mu-plugins .
Composer
- 03composer require wpackagist-plugin/acf-options-for-polylang
Frequently asked questions.
Do I need to change my theme code to use this plugin?
No. Use ACF’s get_field() and the_field() as before with the options page ID (e.g. ‘options’). The plugin handles language automatically.