[Resolved] Remove unwanted segments, and hide priority
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
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.
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.
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.
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:
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"?
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).