Salta la navigazione

Questo thread è stato risolto. Ecco una descrizione del problema e della soluzione.

Problem:
The client is experiencing issues with the Advanced Translation Editor (ATE) in WPML, specifically with custom page templates and ACF custom fields. Despite setting the site to use the Classic Translation Editor, the ATE is still being enforced, causing significant workflow blockages. The ATE fails to correctly handle ACF fields with conditional logic, and a persistent warning in the standard WordPress editor blocks the interface and discourages editing.
Solution:
We recommend setting the ACF field groups to "Translate independently" if you wish to manage translations directly within the standard WordPress editor. To switch to the standard WordPress editor for a specific page, or for all pages of a certain type, you should click on "WordPress Editor" within any page. This action will prompt you to enable the editor for that particular page, for the post type, or for the entire site.

Please note that this solution might be outdated or not applicable to your specific case. If the issue persists, we highly 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 needed, do not hesitate to open a new support ticket for further assistance.

Questo è il forum di assistenza tecnica di WPML, il plug-in multilingue di WordPress.

La sua lettura è permessa a tutti, ma la pubblicazione è riservata esclusivamente ai clienti di WPML. Il team di WPML risponde sul forum 6 giorni su 7, 22 ore su 24.

Questo ticket contiene 3 risposte, ha 0 voci.

Ultimo aggiornamento da Laura 1 mese, 3 settimana fa.

Assistito da: Laura.

Autore Post
Maggio 20, 2025 alle 9:54 am #17051819

Martino

Context:
I am experiencing critical workflow issues with your Advanced Translation Editor (ATE) in the latest WPML versions, specifically concerning custom page templates and ACF custom fields. Despite preferring and configuring my site for the classic WordPress editor for translations, the ATE's aggressive enforcement is causing significant blockage.

My Desired Workflow / Need:
I need to manage translations directly within the standard WordPress editor for my pages and Custom Post Types. My primary goal is a clean, direct interface for content management in different languages, without any warning notices or blocking pop-ups that interrupt the user experience. This approach is essential because I heavily rely on ACF fields with complex conditional logic, which needs to function correctly and visibly across all language versions of the editor.

Current Problems Observed:
Forcing of ATE despite settings:

I've configured my site to use the "Classic Translation Editor" globally, as the option to choose by Post Type (e.g., Pages, my custom CPT 'prodotto') is no longer available in recent WPML versions.
However, when I click the "pencil" icon to edit a translation from the original post (e.g., a page assigned to page-templates/page-prodotti.php), it still opens the Advanced Translation Editor (ATE).

ATE Interface Issues:
When the ATE opens, it fails to correctly represent my ACF field groups with conditional logic. Specifically, fields that should be hidden based on conditional rules (e.g., fields within the "Hero section (grafica)" or "Hero section (gialla)" groups based on the "Tipo di Hero" radio button) are all displayed. This makes the ATE interface confusing and unusable for my content creators.

Persistent and Blocking Warning in Standard Editor:
If I bypass the pencil icon and directly open a translated post/page for editing in the standard WordPress editor (e.g., wp-admin/post.php?post=XXX&action=edit&lang=en), I am immediately presented with a highly disruptive and non-functional warning pop-up: "Attenzione: Le modifiche che stai per fare andranno perse. Stai per modificare questa traduzione usando l'editor standard di WordPress. Qualsiasi modifica che fai andrà persa la prossima volta che mandi questa pagina per la traduzione." (translates to: "Warning: Changes you are about to make will be lost. You are about to edit this translation using the standard WordPress editor. Any changes you make will be lost next time you send this page for translation.")
This alert blocks the entire editor interface.
The provided options are:
"Torna indietro" (Go back) - Does nothing.
"Modifica nell'Editor di Traduzione Avanzato" (Edit in Advanced Translation Editor) - Does nothing (the button is unresponsive).
"Modifica comunque (sconsigliato)" (Edit anyway (not recommended)) - This is the only functional option, but it comes with a strong warning that is highly off-putting to content managers.

ACF Field Translation Preferences:
I have experimented with ACF field translation preferences in WPML > Settings > Custom Field Translation.
If I set ACF field groups (like hero_section_grafica or hero_section_gialla) to "Campi diversi tra le lingue" (Translate independently), the warning persists.
If I set them to "Copia" (Copy), the situation remains unchanged; the ATE still opens via the pencil icon, and the warning still appears in the standard editor.

Summary of the Core Problem:
The current WPML workflow is blocking my ability to use the standard WordPress editor for managing translations, which is critical due to ACF's conditional logic not being supported in the ATE. The persistent, blocking, and partially unresponsive warning makes editing translated content extremely difficult and frustrating for content managers.

My Request:
I need a solution that allows me to:

Manage translations directly within the standard WordPress editor.
Avoid the "Attenzione: Le modifiche che stai per fare andranno perse" warning pop-up entirely.
Ensure that my ACF conditional logic functions correctly and visually in the standard editor for all languages.

Screenshot 2025-05-20 alle 11.52.43.png
Maggio 20, 2025 alle 11:24 am #17052353

Laura
Sostenitore di WPML dal 05/2018

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

Salve,

grazie per averci contattato.

Se usi "campi diversi tra lingue" non puoi usare né l'editor classico né quello avanzato di WPML, per cui i problemi che descrivi sono attesi.

Se vuoi utilizzare l'editor di WordPress, devi cliccare su "Editor di WordPress" all'interno di qualunque pagina, ti chiederà se vuoi abilitare l'editor solo per quella pagina, per il post type o per l'intero sito.

Screenshot 2025-05-20 131321.png
Maggio 20, 2025 alle 1:08 pm #17052832

Martino

Ok, grazie.
Questo sembra un controllo molto importante e il posto e il layout sono molto poco intuitivi. C'è un controllo globale su questa cosa? O solo nella lingua principale all'interno di post/pagine/CPT?

Screenshot 2025-05-20 alle 15.06.00.png
Maggio 20, 2025 alle 1:27 pm #17053003

Laura
Sostenitore di WPML dal 05/2018

Lingue: Inglese (English ) Italiano (Italiano )

Fuso orario: Europe/Rome (GMT+02:00)

No, l'unico modo è quello che ti ho descritto. L'opzione globale è applicarlo a tutto il sito quando lo chiede nel popup.