Skip to content Skip to sidebar

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Andreas W. 1 year, 5 months ago.

Author Posts
April 12, 2024 at 2:41 pm #15513282

Nicola Steyn

I am trying to hide the following fields from translation. I have managed to do this on other field groups but struggling to get the right combination.

Field Labels
Field Instructions
Field Choices

Currently the fields are set to "Same fields across languages" as this is what works on the other options, but everything is still pulling through to the advances translation editor

Screenshot 2024-04-12 at 16.18.20.png
April 13, 2024 at 11:03 am #15514738

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Please add these constants to the wp-config.php file:

define( 'ACFML_HIDE_FIELD_ANNOTATIONS', true );
define( 'ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', true );

Sources:

https://wpml.org/documentation/support/wpml-coding-api/wpml-constants/#acfml_hide_field_annotations

https://wpml.org/documentation/related-projects/translate-sites-built-with-acf/translating-acf-field-labels-with-wpml/

You might not see a direct effect on current jobs that are in progress. You can cancel those jobs at WPML > Translation Management > Jobs.

Also, take note that, after you translate a field group’s labels and Choices in the Advanced Translation Editor once, they won’t show up in the editor again. If you need to update the translations, you can easily do so from WPML → String Translation.

Let us know if further assistance will be required.

Best regards
Andreas

April 16, 2024 at 1:12 pm #15525558

Nicola Steyn

Thank you, this worked