I’ve got an acf site (4.3.9) which needs to be made multilanguage.
WPML is not an option. I am using Polylang 1.6.1.https://wordpress.org/plugins/polylang/
Unfortunatly the documentation http://www.advancedcustomfields.com/resources/multilingual-custom-fields/ only speaks of WPML.
I cannot find the field groups option, of which the documentation talks, in Polylang. (is that availeble?) Therefore I do not get the language select box in the options area.
I tried Polylang synchronizing custom fields checked and unchecked. Either way no Translate field groups option.
BTW I am using a custom post type for the ACF. It shows 1 language for all the languages.
Is there a simple solution? Both Polylang and ACF have WPML support.
-could I generate an array from Polylang which is feeded as WPML to AFC?
-or is there a way to set language as criterium for displaying? (without having to add extra categories)
I managed to perfectly translate the AFC fields just bij reading the documentation on string translation
So no difficult integration between polylang and ACF.
I just added pll_register_string to my functions.php.
This adds the sting inside the function very nicely to the list of translatable words in the admin section of polylang to translate in all available languages.
Then just add the pll__ en pll_e function with the respective sting in the code where ever you need a translated string.
Works like a charm.
add_action( 'init', 'polylang_translate' );
Translate the string ‘back’ in the backend of WP under the category General.
pll_e( 'back' );
For more info read the polylang doc.
From what I get, I think that your issue is not from Polylang. While ACF has now a new hook for i18n for the php exported fields.
Here you can find an exemple : https://github.com/BeAPI/boilerplate-i18n-theme-inc.
After that, you can change i18n strings with Polylang or simply directly by using Poedit or Locotranslate.
In other hand, if you wanna use “theme options”, please use the following add-on to make ACF Option Page support with Polylang : https://github.com/BeAPI/acf-options-for-polylang.
Hello, I have the same problem.
I Have Polylang for Woocommerce, but the custom fields that I created for product pages are not showing after translating a page.
So the translated page is showing the custom fields in the original language.
It is possible to translate ACF with Polylang for woocommerce?
The topic ‘ACF and Polylang’ is closed to new replies.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!