Skip to content Skip to sidebar

This thread is resolved. Here is a description of the problem and solution.

Problem:
1. The client wants to remove certain ACF field labels from translation segments, specifically checkboxes for custom features like 'super-sticky' posts and hiding featured images, while keeping the ability to translate other ACF fields in the future.
2. The client wishes to either display the 'Translation Priority' select only in the default language or disable it entirely, as all posts require translation.

Solution:
1. To prevent ACF field labels from appearing in translation jobs, add the following code to your

wp-config.php

file:

define('ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', true);

For more information, please refer to the documentation on WPML constants and ACFML.

2. Regarding the 'Translation Priority' field, it should only display options for the language you are currently working on. If you are seeing it in all languages, check the translation preference settings under "WPML > Settings". To delete the translated options for 'Translation Priority', follow the guide on Adding priority to your translations.

Please note that the solution provided might be outdated or not applicable to your case. If the issue persists, we recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, do not hesitate to open a new support ticket with us.

0% of people find this useful.

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 3 replies, has 3 voices.

Last updated by Paola Mendiburu 1 year, 5 months ago.

Assisted by: Paola Mendiburu.

Author Posts
February 13, 2024 at 4:32 pm #15298889

gabrielS-38

We have two questions:

1) I would like to remove some segments that are not related to the post content itself. I am using Advanced Custom Fields to add custom fields, for example a couple of checkboxes that appear on the post, that lets the user decide if the post is super-sticky (not the default wordpress sticky, but a custom SUPER-sticky that we provide), or another checkbox that allows to hide the featured image on the front-end.

These ACF fields, are only checkboxes, but the label for that checkboxes are being displayed on the translation as a segment. We don't ever want to translate that. We would like to ignore those segments forever, but not ignore ALL ACF fields by default, because we might have an aditional ACF field for the post in the future, that we would like to translate (for example, a quote that every post could display".

Besides the ACF segments, there appear to be a "Optional" segment, I don't have an idea where that comes from.

I general, we would like the post translation segments, to be only the basic ones:
- title,
- content strings
- yoast meta-description
- excerpt

(please, see segments.png for this question)

2) Then, there appears to be a "Translation Priority" select, which is nice, but the options appear on the three languages that we have activated (english, spanish, and portuguese). Is it possible to display just in the default language (english)? Also, in our case all the posts have required translations, so it would be nice to just disable or hide this field, if possible.

(please, see translation-priority.png for this question)

Is there any documentation that you are following?
No.

Is there a similar example that we can see?
Nope.

What is the link to your site?
It is under development. Local site.

translation-priority.png
segments.png
February 14, 2024 at 11:54 am #15301852

Nicolas V.
Supporter

Languages: English (English ) French (Français )

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

Hi,

Welcome to the WPML support forum. Thanks for contacting us.

We are currently handling a high amount of ticket and while waiting for one of my colleagues to help with this ticket, please allow me to walk you through some initial debugging steps. This will help speed up the support process.

We would need your WPML debug information.
Ref: https://wpml.org/faq/provide-debug-information-faster-support/

In short:
- Go to "WPML > Support > Debug Information" (link)
- Copy the Debug Information from there.
- Find the private field I activated and paste that information.

---

Now give a quick answer to your questions:
1. ACF labels
To disable this feature, just add the following in wp-config.php:

define( 'ACFML_EXCLUDE_FIELD_GROUP_STRINGS_IN_POST_JOBS', true );

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

2. Translation Priority
You shouldn't have all translations inside the post, you should only see the language you're currently working on (so here English). Did you change the translation preference of this field in "WPML > Settings"?

February 14, 2024 at 5:43 pm #15304067

gabrielS-38

Hi Nicolas,
Thank you very much for your help one more time.

1. Is resolved

2. I see what you mean. I went to WPML > Settings > Taxonomies Translation and "Translation Priorities" was set to "Translatable", with a lock icon on. I unlocked this option, set it to "Not translatable", clicked "Save", then "Apply", but I can still see the options translted (please, see image attached). Even after creating a new post. Because you are with high demand, I would like you to know that this issue is not hight priority for us, but it would be nice to have it only in our default lang (english).

Thank you, Bruno.

Screenshot 2024-02-14 at 18.42.10.png
translation-priority-settings.png
February 15, 2024 at 10:45 am #15306443

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

This is Paola and I will take care of the ticket.

In order to delete the translated options you will need to follow this guide:
https://wpml.org/documentation/translating-your-contents/adding-priority-to-your-translations/#how-to-add-priority-to-any-translation

Please go to a page and on Translation priorities click on edit terms that way you can delete the translated options.

February 17, 2024 at 10:42 pm #15314263

gabrielS-38

Thank you!