Người dùng này không có chủ đề yêu thích.
Chủ đề diễn đàn yêu thích
Chủ đề diễn đàn đã được tạo
Trạng thái |
Đề tài
|
Người ủng hộ | Tiếng nói | Bài viết | Độ tươi |
---|---|---|---|---|---|
Popup Maker: popup does not open on translated page
Bắt đầu bởi: Rico Heinrich
tRONG: English Support
Problem: If changing the popup ID does not resolve the issue, it could be related to a theme error. We recommend checking the debug log for errors and consulting with the theme author if necessary. For instance, a PHP error related to a 'call to a member function get_type() on null' in the theme's files was identified as the cause in a similar situation. 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 persists, please open a new support ticket. |
|
0 | 7 | 2 weeks, 4 days trước | |
Error loading file WP Endpoints-en_US.mo
Bắt đầu bởi: Rico Heinrich
tRONG: English Support
Problem: If this solution does not resolve your issue, or if it 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. Additionally, you can open a new support ticket for further assistance at WPML support forum. |
|
0 | 8 | 3 weeks, 6 days trước | |
Make custom shortcode translatable with line breaks
Bắt đầu bởi: Rico Heinrich
tRONG: 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 | 3 months, 3 weeks trước | |
Translating urlencoded shortcodes: vc_progress_bar
Bắt đầu bởi: Rico Heinrich
tRONG: 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 | 5 months, 1 weeks trước | |
Advanced Product Fields Pro for WooCommerce Dependencies not working
Bắt đầu bởi: Rico Heinrich
tRONG: 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 | 6 months trước | |
Advanced Product Fields Pro for WooCommerce Dependencies not working
Bắt đầu bởi: Rico Heinrich tRONG: English Support |
1 | 2 |
6 months, 1 weeks trước
|
||
Translation of Advanced Product Fields not working in Cart
Bắt đầu bởi: Rico Heinrich
tRONG: 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 | 8 months trước |