У этого пользователя нет любимых тем.
Любимые темы форума
Созданные темы форума
Состояние |
Тема
|
Сторонник | Голоса | Записи | Свежесть |
---|---|---|---|---|---|
Displaying translated fields in a Ninja table using WPML's icl_object_id function?
Начато по: Mary
в: 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 | 1 месяц назад | ||
Translating the labels in a View created with Advanced Custom Views Framework
Начато по: Mary
в: 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 | 1 месяц, 2 недели назад | ||
URL slugs for each language change automatically, causing 404 errors (Part 2)
Начато по: Mary в: English Support |
2 | 10 | 1 месяц, 4 недели назад | ||
Translating the dates in Timeline Block For Gutenberg
Начато по: Mary
в: 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 | 6 месяцев, 1 неделя назад | ||
URL slugs for each language change automatically, causing 404 errors.
Начато по: Mary в: English Support |
2 | 4 | 6 месяцев, 1 неделя назад | ||
URL slug for each language changing automatically
Начато по: Mary в: Chat Support |
1 | 2 |
6 месяцев, 1 неделя назад
|
||
Translating a field that doesn't show in String Translation — LH Archived Post Status plugin
Начато по: Mary
в: 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 | 6 месяцев, 1 неделя назад | ||
Translating custom fields in Citadela
1
2
3
Начато по: Mary
в: 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 | 11 месяцев назад | ||
Media translation not always working
Начато по: Mary
в: 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 год назад | ||
ACF Multilingua — strings not translated on front end
Начато по: Mary
в: English Support
Problem: |
2 | 3 | 1 год назад | ||
Can't update plugin or activate sitepress-multilingual-cms.4.3.6
Начато по: Mary в: Chat Support |
1 | 2 | 4 года, 11 месяцев назад |