Skip Navigation

This topic contains 0 replies, has 1 voice.

Last updated by Emke Douwe Ottema 1 month, 1 week ago.

Assisted by: Mateus Getulio.

Author Posts
October 24, 2024 at 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?