У этого пользователя нет любимых тем.
Любимые темы форума
Созданные темы форума
Состояние |
Тема
|
Сторонник | Голоса | Записи | Свежесть |
---|---|---|---|---|---|
Error loading file WP Endpoints-en_US.mo
Начато по: Rico Heinrich в: English Support |
0 | 3 | 14 часов, 19 минут назад | ||
We are getting warnings in our error.log: file_exists(): open_basedir restriction in effect. File(WP…
Начато по: Rico Heinrich в: Chat Support |
1 | 2 | 1 день, 2 часа назад | ||
Make custom shortcode translatable with line breaks
Начато по: Rico Heinrich
в: English Support
Problem: <shortcode><br /> <tag>uncode_pricing</tag><br /> <attributes><br /> <attribute>title</attribute><br /> <attribute>price</attribute><br /> <attribute type="area" encoding="allow_html_tags">body</attribute><br /> </attributes><br /></shortcode> 2. Make a minor change in the default language page to trigger the translation reload, then attempt to translate the page again.
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. Should you need further assistance, please open a new support ticket at WPML support forum. |
0 | 3 | 2 месяца, 3 недели назад | ||
Translating urlencoded shortcodes: vc_progress_bar
Начато по: Rico Heinrich
в: English Support
Problem: add_filter( 'wpml_pb_shortcode_encode', 'wpml_pb_shortcode_encode_urlencoded_json', 10, 3 );<br />function wpml_pb_shortcode_encode_urlencoded_json( $string, $encoding, $original_string ) {<br /> if ( 'urlencoded_json' === $encoding ) {<br /> $output = array();<br /> foreach ( $original_string as $combined_key => $value ) {<br /> $parts = explode( '_', $combined_key );<br /> $i = array_pop( $parts );<br /> $key = implode( '_', $parts );<br /> $output[ $i ][ $key ] = $value;<br /> }<br /> $string = urlencode( json_encode( $output ) );<br /> }<br /> return $string;<br />}<br /><br />add_filter( 'wpml_pb_shortcode_decode', 'wpml_pb_shortcode_decode_urlencoded_json', 10, 3 );<br />function wpml_pb_shortcode_decode_urlencoded_json( $string, $encoding, $original_string ) {<br /> if ( 'urlencoded_json' === $encoding ) {<br /> $rows = json_decode( urldecode( $original_string ), true );<br /> $string = array();<br /> foreach ( $rows as $i => $row ) {<br /> foreach ( $row as $key => $value ) {<br /> if ( in_array( $key, array( 'text', 'title', 'features', 'substring', 'btn_text', 'label', 'value', 'y_values' ) ) ) {<br /> $string[ $key . '_' . $i ] = array( 'value' => $value, 'translate' => true );<br /> } else {<br /> $string[ $key . '_' . $i ] = array( 'value' => $value, 'translate' => false );<br /> }<br /> }<br /> }<br /> }<br /> return $string;<br />} 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 this does not resolve your issue, please open a new support ticket at WPML support forum. |
2 | 5 | 4 месяца, 1 неделя назад | ||
Advanced Product Fields Pro for WooCommerce Dependencies not working
Начато по: Rico Heinrich
в: English Support
Problem: Solution: If these steps do not resolve your issue or if the solution seems outdated or irrelevant 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 further assistance is needed, please open a new support ticket at WPML support forum. |
2 | 12 | 5 месяцев назад | ||
Advanced Product Fields Pro for WooCommerce Dependencies not working
Начато по: Rico Heinrich в: English Support |
1 | 2 |
5 месяцев, 1 неделя назад
|
||
Translation of Advanced Product Fields not working in Cart
Начато по: Rico Heinrich
в: English Support
Problem: functions.php file of your theme. Please ensure you perform a full site backup before implementing this code: // Add the filter with a higher priority (lower number) than the plugin's filter add_filter('get_post_metadata', 'translate_wapf_fieldgroup_post_meta', 10, 4); function translate_wapf_fieldgroup_post_meta($value, $post_id, $meta_key, $single) { if ($meta_key === '_wapf_fieldgroup') { // Temporarily remove the filter to avoid infinite loops remove_filter('get_post_metadata', 'translate_wapf_fieldgroup_post_meta', 10); // Get the original meta value $fieldgroup_meta = get_post_meta($post_id, $meta_key, false); // Re-add the filter add_filter('get_post_metadata', 'translate_wapf_fieldgroup_post_meta', 10, 4); if (!empty($fieldgroup_meta) && is_array($fieldgroup_meta)) { foreach ($fieldgroup_meta as &$group) { if (isset($group['id']) && preg_match('/p_(\d+)/', $group['id'], $matches)) { $post_id = $matches[1]; $translated_post_id = apply_filters('wpml_object_id', $post_id, 'post', true); $group['id'] = str_replace("p_$post_id", "p_$translated_post_id", $group['id']); } } } return $fieldgroup_meta; } return $value; } This solution addresses the issue where the plugin stores the Advanced Product fields in _wapf_fieldgroup as a multidimensional array, which may not update correctly across different languages in the cart. Please note, this workaround may not function correctly if languages are switched on the Cart or Checkout pages. To prevent potential issues, enable the "Prompt for a confirmation and reset the cart" option. For more details, see this article. If this solution does not resolve your issue or seems outdated, please check related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If needed, do not hesitate to open a new support ticket at WPML support forum. |
2 | 6 | 7 месяцев назад | ||
Translate Link Targets not working as expected
Начато по: Rico Heinrich в: Chat Support |
1 | 2 |
7 месяцев, 3 недели назад
|