هذا المستخدم ليس لديه مواضيع مفضلة.
مواضيع المنتدى المفضلة
تم إنشاء مواضيع المنتدى
الحالة |
عنوان
|
مؤيد، مشجع، داعم | أصوات | المقالات | نضارة |
---|---|---|---|---|---|
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 شهر، أسبوعين | ||
URL slugs for each language change automatically, causing 404 errors (Part 2)
بدأ ب: Mary في: English Support |
2 | 10 | قبل شهرين | ||
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 شهر |