דלג לתוכן דלג לסרגל צד

נושא זה מכיל 0 1, יש ל 1קוֹל.

עודכן לאחרונה על ידי Emke Douwe Ottema לפני שנה 1, חודש 2.

בסיוע: Mateus Getulio.

מחבר פוסטים
אוקטובר 24, 2024 ב-11:40 am #16325836

Emke Douwe Ottema

Background of the issue:
I am trying to translate the id fields of a shortcode in a WordPress site under development. The shortcode is:
[mautic type="form" id="22"]

I added this XML config under Settings -> Custom XML config:

mautic type id

and added this line in my functions.php:

add_filter( 'wpml_tm_job_field_is_translatable', '__return_true' ).

I followed this guide: https://wpml.org/documentation/support/language-configuration-files/translate-custom-shortcodes-with-wpml/

Symptoms:
After editing the original page, I can translate the type field, but there is no way to translate the id field.

Questions:
What am I missing in the configuration to translate the id field?