У этого пользователя нет любимых тем.
Любимые темы форума
Созданные темы форума
Состояние |
Тема
|
Сторонник | Голоса | Записи | Свежесть |
---|---|---|---|---|---|
Issue with ACF and WPML
Начато по: Nazar Kurnyk
в: English Support
Problem: acf_add_local_field_group function. They have successfully implemented the wpml_cf_preferences attribute in their local environment as per our documentation, but are facing problems in the development environment where fields are not consistently available for translation, especially with multi-level arrays. They also inquired about reindexing fields to include new fields and troubleshooting the scanning of fields created with PHP. Solution: If this solution does not seem relevant or if the problem persists, we recommend opening a new support ticket with us for further assistance. You can do so by visiting the WPML support forum. |
|
2 | 11 | 1 год, 5 месяцев назад | |
Translate custom fields
Начато по: Nazar Kurnyk
в: English Support
**Problem:** I am having an issue with Advanced Custom Fields (ACF) on our website. We use `acf_add_local_field_group` function to manage fields, and I'm looking for a way to batch select all fields for translation. Manually selecting fields for translation is time-consuming due to the high volume of fields. I tried to find these entries in the database to create a script for automatic inclusion but couldn't locate the exact table where this information is stored. **Solution:** To address the issue of batch selecting fields for translation in ACF, you can use the [WPML Compatibility Test Tools Plugin](https://wpml.org/documentation/related-projects/wpml-compatibility-test-tools-plugin/#how-do-i-generate-language-configuration-files-using-multilingual-tools) and the [Multilingual Tools Plugin](https://github.com/OnTheGoSystems/multilingual-tools). If the plugin is freezing due to the large number of fields, consider using the `wpml_cf_preferences` attribute in your field groups. You might write a script to add `'wpml_cf_preferences' => 2` to every field. For example, use a PHP script to read your ACF field configuration file, identify the lines where you need to insert the `wpml_cf_preferences`, and then write the updated content back to the file. However, note that this approach requires custom scripting and isn't part of the standard support scope. **Relevant Documentation:** |
|
2 | 5 | 1 год, 6 месяцев назад |