У этого пользователя нет избранных тем.
Избранные темы форума
Созданные темы форума
| Статус |
Тема
|
Специалист поддержки | Голоса | Сообщения | Свежесть |
|---|---|---|---|---|---|
|
Delete media translation
Начато: johnH-55
в: English Support
Problem: Please note that this solution might be outdated or not applicable to your specific 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 the problem continues, please open a new support ticket. |
|
0 | 4 | 1 месяц назад | |
|
SyntaxError: Failed to execute ‘json’ on ‘Response’: Unexpected end of JSON input
Начато: johnH-55
в: English Support
Problem: If this solution does not resolve the issue or seems irrelevant due to being outdated or not applicable to 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 problems persist, please open a new support ticket at WPML support forum for further assistance. |
|
0 | 6 | 1 месяц, 2 недели назад | |
|
Translate URL in custom post type content
Начато: johnH-55 в: English Support |
|
1 | 7 | 5 месяцев, 3 недели назад | |
|
import XLIFF files
Начато: johnH-55 в: English Support |
|
1 | 8 | 8 месяцев, 1 неделя назад | |
|
Custom link description translation
Начато: johnH-55 в: English Support |
|
0 | 9 | 8 месяцев, 4 недели назад | |
|
String translation for homepage at cs-CZ not working, while other pages and homepages in other langu…
Начато: johnH-55 в: English Support |
|
0 | 4 | 11 месяцев, 3 недели назад | |
|
Managing relations and structure update when EN-US -> FR-FR (translation) -> FR-BE (duplicate)
Начато: johnH-55 в: English Support |
|
0 | 9 | 1 год назад | |
|
WPML Media Translation
1
2
Начато: johnH-55
в: English Support
Problem: apply_filters('wpml_object_id', $mediaID, 'attachment', true); function to ensure that the media ID is correctly translated, which should resolve the issue with the inactive button and the incorrect display of images. Here is a step-by-step guide: apply_filters function to get the translated media ID. If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to 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 the problem persists, please open a new support ticket at WPML support forum for further assistance. |
|
1 | 17 | 1 год назад | |
|
WPML page and post translate and duplicate
Начато: johnH-55 в: Chat Support |
|
1 | 2 | 1 год, 2 месяца назад | |
|
Taxonomy translation access for Editor role
Начато: johnH-55 в: Chat Support |
|
1 | 2 | 1 год, 2 месяца назад | |
|
WPML String Translation Version 3.2.14 at our website is , while at WPML v 3.2.15 available., same w…
Начато: johnH-55 в: Chat Support |
|
0 | 2 | 1 год, 4 месяца назад | |
|
I need to retrieve posts in different language than current
Начато: johnH-55
в: English Support
Problem: get_terms function returns terms from all WPML languages instead of just the desired one. get_terms returns terms only for the desired WPML language, follow these steps: do_action('wpml_switch_language', $language_code) function to switch to the desired language. get_terms call to filter by the desired language using apply_filters('wpml_object_id', $term->term_id, 'category', true, $language_code). function get_terms_for_language($taxonomy, $language_code) {<br /> if (function_exists('apply_filters')) {<br /> do_action('wpml_switch_language', $language_code);<br /> $terms = get_terms(array(<br /> 'taxonomy' => $taxonomy,<br /> 'hide_empty' => false,<br /> ));<br /> $filtered_terms = array();<br /> foreach ($terms as $term) {<br /> $translated_term_id = apply_filters('wpml_object_id', $term->term_id, $taxonomy, true, $language_code);<br /> if ($translated_term_id) {<br /> $translated_term = get_term($translated_term_id, $taxonomy);<br /> if ($translated_term) {<br /> $filtered_terms[] = $translated_term;<br /> }<br /> }<br /> }<br /> return $filtered_terms;<br /> } else {<br /> return get_terms(array(<br /> 'taxonomy' => $taxonomy,<br /> 'hide_empty' => false,<br /> ));<br /> }<br />}<br /><br />// Example usage<br />$site_id = 2; // en-CA site<br />$locale = 'en_CA';<br />$taxonomy = 'category'; // Example taxonomy<br />$language_code = 'en';<br /><br />switch_to_blog($site_id);<br />switch_to_locale($locale);<br /><br />$terms = get_terms_for_language($taxonomy, $language_code);<br /><br />restore_current_blog();For further details, refer to the WPML documentation. 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 | 2 | 1 год, 8 месяцев назад | |
|
WPML chat support ticket by johnH-55 — 1714750198
Начато: johnH-55 в: Chat Support |
|
1 | 2 |
1 год, 11 месяцев назад
|
|
|
WPML chat support ticket by johnH-55 — 1713546785
Начато: johnH-55 в: Chat Support |
|
1 | 2 |
1 год, 11 месяцев назад
|
|
|
Menu sync not working correctly
Начато: johnH-55 в: English Support |
|
1 | 2 |
1 год, 11 месяцев назад
|