למשתמש זה אין נושאים מועדפים.
נושאי פורום מועדפים
נושאי פורום שנוצרו
| סטטוס |
נושא
|
תומך | קולות | פוסטים | עדכניות |
|---|---|---|---|---|---|
|
Problem with wpml + acf pro
נפתח על ידי: yuryB-5 ב: Chat Support |
|
0 | 2 | לפני חודש 7, שבוע 2 | |
|
Проблема с переводами блоков кастомных гутенберг + wpml
1
2
נפתח על ידי: yuryB-5
ב: Поддержка на русском языке
Проблема: <wpml-config>
<gutenberg-blocks>
<gutenberg-block type="carbon-fields/my-shiny-gutenberg-block" translate="1">
<key name="data">
<key name="crb_heading"></key>
<key name="crb_content"></key>
<key name="crb_image" type="post-ids" sub-type="attachment"></key>
</key>
</gutenberg-block>
</gutenberg-blocks>
</wpml-config>1. Вы публикуете пост с изображением в данном блоке. 2. После загружаете другое изображение в WPML → Media Translation. Пример: Если данное решение не актуально или не подходит под ваш случай, мы рекомендуем открыть новый тикет поддержки. Также рекомендуем проверить известные проблемы, версии постоянных исправлений и убедиться, что у вас установлены последние версии тем и плагинов. |
|
1 | 17 | לפני חודש 7, שבוע 3 | |
|
Problem with translating custom fields
1
2
נפתח על ידי: yuryB-5
ב: English Support
Problem:
/*
* WPML Workaround for compsupp-7642 - Part 1
*/
add_filter('wpml_filter_field_value', 'wpml_compsupp7642_workaround_for_serialized_post_meta');
function wpml_compsupp7642_workaround_for_serialized_post_meta($field_value) {
if (!is_array($field_value)) {
return $field_value;
}
foreach ($field_value as &$single_value) {
if (!is_array($single_value)) {
continue;
}
foreach ($single_value as &$value) {
if (!is_string($value)) {
continue;
}
if (is_serialized($value)) {
$unserialized = @unserialize($value);
if ($unserialized !== false) {
$value = is_array($unserialized) ? reset($unserialized) : $unserialized;
}
}
}
}
return $field_value;
}
2- Open the app/public/wp-content/themes/cash4smstheme/page-faq.php file $crb_page_faq_1_title = carbon_get_post_meta($page_id, 'crb_page_faq_1_title'); $crb_page_faq_1_cards = carbon_get_post_meta($page_id, 'crb_page_faq_1_cards'); $crb_page_faq_2_title = carbon_get_post_meta($page_id, 'crb_page_faq_2_title'); $crb_page_faq_2_cards = carbon_get_post_meta($page_id, 'crb_page_faq_2_cards'); $crb_page_faq_3_title = carbon_get_post_meta($page_id, 'crb_page_faq_3_title'); $crb_page_faq_3_cards = carbon_get_post_meta($page_id, 'crb_page_faq_3_cards'); With
$crb_page_faq_1_cards = apply_filters('wpml_filter_field_value', carbon_get_post_meta($page_id, 'crb_page_faq_1_cards'));
$crb_page_faq_2_title = carbon_get_post_meta($page_id, 'crb_page_faq_2_title');
$crb_page_faq_2_cards = apply_filters('wpml_filter_field_value', carbon_get_post_meta($page_id, 'crb_page_faq_2_cards'));
$crb_page_faq_3_title = carbon_get_post_meta($page_id, 'crb_page_faq_3_title');
$crb_page_faq_3_cards = apply_filters('wpml_filter_field_value', carbon_get_post_meta($page_id, 'crb_page_faq_3_cards'));
The idea is to apply a filter to all fields with the issue. This filter will apply our workaround function (part 1) that removes the double array of the value. 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. |
|
2 | 30 | לפני שנה 1, חודש 3 | |
|
Problem with displaying translated page
נפתח על ידי: yuryB-5
ב: English Support
Problem: If this solution does not apply because it's outdated or not relevant 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. |
|
2 | 7 | לפני שנה 1, חודש 4 | |
|
How to style ?php do_action('wpml_add_language_selector'); ?>
נפתח על ידי: yuryB-5 ב: Chat Support |
|
1 | 2 |
לפני שנה 1, חודש 4
|
|
|
Custom query request
נפתח על ידי: yuryB-5
ב: English Support
Problem: <?php
// Get the current frontend language
$current_lang = apply_filters( 'wpml_current_language', NULL );
$args = array(
'post_type' => 'post',
'posts_per_page' => -1,
'suppress_filters' => false,
'lang' => $current_lang, // Filter posts by the current language
);
$posts = get_posts($args);
if ($posts) {
foreach ($posts as $post) {
setup_postdata($post);
// Display the post data
echo '<h2>' . get_the_title() . '</h2>';
echo '<div>' . get_the_excerpt() . '</div>';
}
wp_reset_postdata();
}
?>If this solution does not apply because it is outdated or not suitable for 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 | 7 | לפני שנה 1, חודש 5 | |
|
Not working sql
נפתח על ידי: yuryB-5 ב: Chat Support |
|
1 | 2 |
לפני שנה 1, חודש 5
|
|
|
How can I substitute lang = fr without adding it to wpml
נפתח על ידי: yuryB-5 ב: Chat Support |
|
1 | 2 |
לפני שנה 1, חודש 5
|
|
|
Problem with translating custom fields (carbon fields plugin)
נפתח על ידי: yuryB-5 ב: Chat Support |
|
1 | 2 |
לפני שנה 1, חודש 5
|
|
|
How do I enable translation carbon fields ?
נפתח על ידי: yuryB-5 ב: Chat Support |
|
1 | 2 |
לפני שנה 1, חודש 5
|
|
|
Problem with translating custom post types
נפתח על ידי: yuryB-5 ב: Поддержка на русском языке |
1 | 1 |
לפני שנה 1, חודש 5
|