Questo utente non ha argomenti preferiti.
Argomenti preferiti del forum
Argomenti del forum creati
Stato |
Argomento
|
Sostenitore | Voci | Messaggi | Freschezza |
---|---|---|---|---|---|
Can’t translate properly since WPML change in applying markers
Iniziato da: Mary in: English Support |
|
1 | 8 | 59 minuto fa | |
Displaying translated fields in a Ninja table using WPML's icl_object_id function?
Iniziato da: Mary
in: English Support
Problem: Solution: $post_id instead of hardcoding it. We also suggested adding error handling for missing fields and allowing dynamic shortcode attributes. Here is the revised code: // Function to get translated ACF fields using WPML function get_translated_acf_fields($post_id, $language_code = null) { if (!$language_code) { $language_code = apply_filters('wpml_current_language', null); } $translated_post_id = apply_filters('wpml_object_id', $post_id, get_post_type($post_id), false, $language_code); if (!$translated_post_id) { return null; } $fields = array( 'ville' => get_field('ville', $translated_post_id), 'publics' => get_field('publics', $translated_post_id), 'programmes' => get_field('programmes', $translated_post_id), ); return $fields; } add_shortcode('ville_field', 'display_ville_field'); add_shortcode('publics_field', 'display_publics_field'); add_shortcode('programmes_field', 'display_programmes_field'); Additionally, we suggested testing the code without Ninja Table first and ensuring that Ninja Table is set as "Translatable" in WPML > Settings > Post Type Translation, then translating the tables and using their respective shortcodes in each language. If this solution does not resolve your issue or seems irrelevant due to updates or differences in your case, 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 further assistance is needed, please open a new support ticket at WPML support forum. |
|
2 | 5 | 2 mese, 3 settimana fa | |
Translating the labels in a View created with Advanced Custom Views Framework
Iniziato da: Mary
in: English Support
Problem: Please note that this solution might be outdated or not applicable to your specific case. If these steps do not resolve your issue, 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 WPML support forum. |
|
2 | 5 | 3 mese, 1 settimana fa | |
URL slugs for each language change automatically, causing 404 errors (Part 2)
Iniziato da: Mary in: English Support |
|
2 | 10 | 3 mese, 3 settimana fa | |
Translating the dates in Timeline Block For Gutenberg
Iniziato da: Mary
in: English Support
Problem: <wpml-config> <gutenberg-blocks> <gutenberg-block type="cp-timeline/content-timeline-block-child" translate="1"> <xpath label="Timeline block date">//div/div/div/div/div/p</xpath> </gutenberg-block> </gutenberg-blocks> </wpml-config> For more details, refer to our documentation on making custom Gutenberg blocks translatable: https://wpml.org/documentation/support/language-configuration-files/make-custom-gutenberg-blocks-translatable/ If this solution does not apply to your case, or if it 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 further assistance is needed, please open a new support ticket at our support forum. |
|
2 | 8 | 8 mese fa | |
URL slugs for each language change automatically, causing 404 errors.
Iniziato da: Mary in: English Support |
2 | 4 | 8 mese fa | ||
URL slug for each language changing automatically
Iniziato da: Mary in: Chat Support |
|
1 | 2 |
8 mese fa
|
|
Translating a field that doesn't show in String Translation – LH Archived Post Status plugin
Iniziato da: Mary
in: English Support
Problem: If this solution does not resolve your issue or seems outdated, we 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 needed, please open a new support ticket for further assistance at WPML support forum. |
|
3 | 5 | 8 mese fa | |
Translating custom fields in Citadela
1
2
3
Iniziato da: Mary
in: English Support
Problem: Solution: 1. Navigate to the file /wp-content/plugins/citadela-directory/plugin/cpt/item/CitadelaItem.php . add_action('init', array(__CLASS__, 'citadelaOnInit'), 20, 0); 3. Change it to: add_action('init', array(__CLASS__, 'citadelaOnInit'), 0); 4. After making the change, go to WPML -> Settings -> Custom post type translation -> Items (citadela-item), enter the translation for "lieu", and click "Save". We also emphasized the importance of having a full backup of the website before making any updates or changes. Please note that this solution might be irrelevant due to being outdated or not applicable to your case. If the issue persists, we highly recommend checking 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 for further assistance at WPML support forum. |
|
2 | 34 | 1 anno fa | |
Media translation not always working
Iniziato da: Mary
in: English Support
Problem: Solution: If the issue persists, apply this workaround: <wpml-config> <gutenberg-blocks> <gutenberg-block type="core/file" translate="1"> <xpath>//div/a</xpath> <xpath type="link">//div/a/@href</xpath> <key type="link" name="href"></key> </gutenberg-block> </gutenberg-blocks> </wpml-config> 2. Edit the page in the original language, make a small change to the content, save, and then update the translation in the Advanced Translation Editor (ATE). If this solution doesn't look relevant to your issue, please open a new support ticket with us. |
|
4 | 15 | 1 anno, 2 mese fa | |
ACF Multilingua – strings not translated on front end
Iniziato da: Mary
in: English Support
Problem: |
|
2 | 3 | 1 anno, 2 mese fa |