Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
It is sadly not possible to translate programmatically created ACF Field Groups and their Fields with WPML Advanced Custom Fields Multilingual.
The field groups need to exist on the backend, to be translatable as you need to set a translation preference for each group and also for each field if you use the "Expert" mode.
Hello Andreas,
I did not translate them with ACF-ML addon. I translated them exactly as WPML documented it: by adding the 'set to wpml_cf_perferences => 2' lines to each field in the PHP file.
That did not work, so I tested whether installing ACF-ML addon would help.
I need help fixing the fact that adding the wpml_cf_preferences to each field does not change the translation settings in WPML.
Also,
how would I use expert mode if I have a theme with a file with the acf fields already in there, and ACF not installed at all? I can re-install ACF, but I cannot re-import the ACF fields from the PHP file into ACF. This is not possible as far as I have been able to find.
But that should be beside the point, as WPML clearly states it is possible to set the translation settings in the PHP file itself. I need to get that working...
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
This documentation is related to "Translating ACF Blocks With WPML".
Are you using ACF Blocks?
The topic ‘[Closed] preparing programatically registered fields for translation’ is closed to new replies.
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.