This user has no favorite topics.
Favorite Forum Topics
Forum Topics Created
Status |
Topic
|
Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
woocommmerce product fields on change of default language
Started by: filipposD in: English Support |
|
0 | 5 | 1 day, 23 hours ago | |
Video is not added to single product
Started by: filipposD
in: English Support
Problem: // WPML Workaround for compsupp-7477 add_filter('get_post_metadata', 'wpml_compsupp7477_filter_woodmart_wc_video_gallery', 10, 4); add_filter('woodmart_single_product_image_thumbnail_id', 'wpml_compsupp7477_translate_attachment_id', 10, 2); function wpml_compsupp7477_filter_woodmart_wc_video_gallery($null, $object_id, $meta_key, $single) { // Target the specific meta key if ($meta_key !== 'woodmart_wc_video_gallery') { return $null; } // Prevent recursion by temporarily removing the filter remove_filter('get_post_metadata', 'wpml_compsupp7477_filter_woodmart_wc_video_gallery', 10); // Fetch the original meta value $video_gallery = get_post_meta($object_id, $meta_key, false); // Re-add the filter add_filter('get_post_metadata', 'wpml_compsupp7477_filter_woodmart_wc_video_gallery', 10, 4); // Check if we actually got an array if (isset($video_gallery[0]) && is_array($video_gallery[0])) { foreach ($video_gallery[0] as $key => $value) { // Apply the WPML filter to each item (video settings array key) $translated_key = apply_filters('wpml_object_id', $key, 'post', true); $video_gallery[0][$translated_key] = $value; } } return $video_gallery; } function wpml_compsupp7477_translate_attachment_id($attachment_id, $product) { return apply_filters('wpml_object_id', $attachment_id, get_post_type($attachment_id), true); } Please ensure to backup your database before making any changes. 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 further assistance is needed, please open a new support ticket at WPML support forum. |
|
1 | 8 | 3 weeks, 2 days ago | |
elementor popup is not translated
Started by: filipposD
in: English Support
Problem: functions.php file of your theme using a code editor. /** * Convert the popup link in a column * Based on compsupp-7641 workaround */ add_filter( 'wpml_pb_elementor_widget_dynamic_id_converters', function( $converters ) { $isContainer = \WPML\FP\Relation::propEq( 'elType', 'column' ); $containerLinksLens = \WPML\FP\compose( \WPML\FP\Obj::lensProp( 'settings' ), \WPML\FP\Obj::lensPath( [ '__dynamic__', 'column_link' ] ) ); return array_merge( $converters, [ [ $isContainer, $containerLinksLens, 'popup', 'popup' ], ] ); } ); 4. Save the changes to the file. This code snippet should help ensure that the popup is displayed in the correct language. We contacted the authors of the Make Column Clickable Elementor plugin and asked them to add this fix to their files. https://wordpress.org/plugins/make-column-clickable-elementor/. |
|
0 | 10 | 3 weeks, 3 days ago | |
elementor auto geenrated css in not correct
Started by: filipposD in: English Support |
1 | 4 | 2 months ago | ||
Header CSS Broke
Started by: filipposD in: English Support |
|
0 | 5 | 6 months, 3 weeks ago | |
jetengine custom post types meta field translation
Started by: filipposD
in: 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 the problem persists, please open a new support ticket. |
|
2 | 14 | 11 months, 2 weeks ago |