Questo utente non ha argomenti preferiti.
Argomenti preferiti del forum
Argomenti del forum creati
| Stato |
Argomento
|
Supporter | Voci | Post | Freschezza |
|---|---|---|---|---|---|
|
Translate Elementor Dynamic tag custom field
Iniziato da: Nohemi
in: English Support
Problem: Solution: public function render(): void {<br /> // Grab settings<br /> $text = (string) $this->get_settings( 'text_param' );<br /> $number = (int) $this->get_settings( 'number_param' );<br /> $select = (string) $this->get_settings( 'select_param' );<br /><br /> // --- WPML translation for the text field ---<br /> // Use a stable domain and a reasonably unique name to avoid collisions across pages.<br /> $domain = 'elementor-random-number-dynamic-tag';<br /> $post_id = function_exists('get_the_ID') ? (int) get_the_ID() : 0;<br /> $name = sprintf( 'text_param|post:%d', $post_id );<br /><br /> // 1) Register the original string (safe to leave in place permanently)<br /> do_action( 'wpml_register_single_string', $domain, $name, $text );<br /><br /> // 2) Fetch the translated version (if any)<br /> $text_translated = apply_filters( 'wpml_translate_single_string', $text, $domain, $name );<br /><br /> // ---- your actual output ----<br /> // (Example: echo the translated text, the random number, etc.)<br /> echo esc_html( $text_translated );<br />}If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at our support forum. |
|
0 | 13 | 5 mese, 4 settimana fa | |
|
/wp-json/wpml/tm/v1/ate/jobs/retry 403 if current user hasn't the capability
Iniziato da: Nohemi in: English Support |
|
2 | 10 | 1 anno, 9 mese fa | |
|
Translate a number in shortcode attributes in elementor
1
2
Iniziato da: Nohemi in: English Support |
|
3 | 22 | 2 anno, 5 mese fa | |
|
Translate Elementor links
Iniziato da: Nohemi in: English Support |
|
2 | 3 | 3 anno fa |