This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Tagged: Compatibility
This topic contains 12 replies, has 2 voices.
Last updated by Long Nguyen 1 year, 8 months ago.
Assisted by: Long Nguyen.
Author | Posts |
---|---|
October 11, 2023 at 8:26 am #14556459 | |
erwinV-10 |
I have 3 plugins. WPML, Slider revolution and Events Manager Pro. |
October 11, 2023 at 9:19 am #14557575 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Here is the ticket URL. I'm trying to investigate the issue and update you here when I have something to share. Thanks. |
October 12, 2023 at 3:48 am #14562339 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I'm asking our 2nd tier support about this compatibility issue. I will update you here when I have something to share. Thanks. |
October 16, 2023 at 3:26 am #14581069 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I got a workaround from our 2nd tier support. Please backup your database and website before proceeding, then add the code below to the file functions.php in the theme/child theme folder to fix this issue. // WPML : Workaround for compsupp-7008 add_filter('em_events_output_events', 'wpml_compsupp7008_filter_em_events_output_events', 10 , 1); function wpml_compsupp7008_filter_em_events_output_events($events){ foreach( $events as $key => $event ) { $post_id = $event->post_id; $wpml_post_language_details = apply_filters( 'wpml_post_language_details', NULL, $post_id ) ; $wpml_current_language = apply_filters( 'wpml_current_language', NULL ); if ( $wpml_post_language_details['language_code'] != $wpml_current_language ) { unset($events[$key]); } } return $events; } Let me know how it goes. |
October 16, 2023 at 8:23 am #14582295 | |
erwinV-10 |
Hi, Activating this theme and WPBakery on the dev is a bit more complicated due to licenses... |
October 16, 2023 at 9:30 am #14582909 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, On your site, if you switch to a standard theme of WordPress, does it work properly? I also need more information on your site by sharing the debug info. If you don’t know how to share the debug info, please follow this article https://wpml.org/faq/provide-debug-information-faster-support/ Look forward to your reply. |
October 17, 2023 at 6:54 am #14590209 | |
erwinV-10 |
Hi, |
October 17, 2023 at 7:27 am #14590421 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, Please update WPML plugins on your site to the new version (WPML 4.6.6, String Translation 3.2.8), add the PHP code to the theme file and recheck the issue. If it does not help, I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. Your next reply is set to private to share the info. ❌ IMPORTANT: Please backup your database and website before proceeding ❌ Look forward to your reply. |
October 17, 2023 at 8:59 am #14591729 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I create a test page hidden link [rev_slider alias="home-desktop" slidertitle="Home slider desktop"][/rev_slider] [events_list scope="future" limit="5"] The option "Use WPML settings" is enabled in the slider settings and the Event posts in Dutch language display correctly, please check the attached screenshot. Can you please recheck this? Look forward to your reply. |
October 17, 2023 at 12:18 pm #14594055 | |
erwinV-10 |
Hi, |
October 18, 2023 at 3:18 am #14598821 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, I think it is expected. The custom code above helps you remove event posts that do not have the language as the current language. if ( $wpml_post_language_details['language_code'] != $wpml_current_language ) { unset($events[$key]); } It does not help to query only event posts by the current language. Also, the string translations are not loaded. If you are talking about the button text "Boek een plaats", you can follow steps below to translate it: Refer documentation https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/ Also, please help us report this issue to the Events Manager author if they can add the current language to the query to filter event posts by language when Slider Revolution is displayed on the same page. Thanks. |
October 18, 2023 at 6:12 am #14599261 | |
erwinV-10 |
On the homepage I want to show exactly 2 events per language. There will not always be an equal number of Dutch and French events. As a result, limit="2" will always have to be adjusted manually using the number of events there are. So not an immediate solution for us. But I have currently fixed it by making a separate slider for Dutch and for French. This means I don't need the "Use WPML settings" button. String translations is clear. (Without "Use WPML settings" I don't need the string translations. Then it works the way events manager does.) I have already contacted events manager. But I no longer have access to the support section due to a bug in their system :D. I have contacted them about this and will share this forum message with them as soon as I have access again. |
October 18, 2023 at 7:37 am #14599653 | |
Long Nguyen WPML Supporter since 02/2022
Languages: English (English ) Timezone: Asia/Ho_Chi_Minh (GMT+07:00) |
Hi, So we have workarounds to fix the compatibility issue between 3 plugins on your site. Let me know if you have more questions. Thanks. |