Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
If you're experiencing an issue where all languages are displayed at once in some sections of your website when using the "Trip" widget from the "WP Travel Engine - Elementor Widgets" plugin, the likely cause is a missing argument in the plugin's code.

Solution:
We found that the

suppress_filters

argument was missing, which is necessary for filtering content by language. Here's how we addressed the issue:
1. Navigate to Plugins > Plugin File Editor and select "WP Travel Engine - Elementor Widgets".
2. Access the "includes" folder and open the "class-widgets.php" file.
3. After line 421, insert the following code:

$query_args['suppress_filters'] = false;

We recommend contacting the plugin support to discuss multilingual support for their widget and sharing the solution with them. Additionally, you can suggest that they join the WPML Go-global program by sharing this documentation: https://wpml.org/documentation/support/go-global-program/

If you need to apply the fix to other setups or if you're unable to modify the plugin files directly, you can download the patched files from this link: https://we.tl/t-NZ38n7qDS8 and replace the current files in the directory

wp-content/wte-elementor-widgets/includes

via your hosting's file manager or FTP.

Please note that this solution might be outdated or not applicable to your case. If the issue persists, 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 necessary, please open a new support ticket with us for further assistance.

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: 

This topic contains 3 replies, has 3 voices.

Last updated by Alejandro 1 year, 2 months ago.

Assisted by: Prosenjit Barman.

Author Posts
April 4, 2024 at 3:49 pm

deyvisB

My website shows all languages at once in some sections

April 4, 2024 at 5:05 pm
April 5, 2024 at 12:07 pm #15488027

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well.

I checked the Summary of the conversation and completely understood the issue. As you've shared the access, I have properly checked and was able to find the root cause of the issue.

As you have used the "Trip" widget from the "WP Travel Engine - Elementor Widgets" plugin, I checked the Widget queries and found that an important argument that filters the contents as per the languages, which is `supress_filters` was missing. This is why, posts from all languages were showing in that section.

I added that argument within the Plugin code and now the Trip posts are showing properly on the Homepage. Please check this video for a better understanding: hidden link

Here's the step-by-step solution:

- Navigated to Plugins > Plugin File Editor and selected "WP Travel Engine - Elementor Widgets".
- Accessed the "includes" folder and opened the "class-widgets.php" file.
- After line 421, I inserted the following code which addresses the issue:

$query_args['suppress_filters'] = false;

As you can see, modifying the plugin's code was necessary to resolve the issue, I recommend reaching out to the plugin support and discussing further about the multilingual support for their Widget. You can also share the solution with them so that they can implement the solution wherever it is needed.

As the Plugin is not listed in the compatible plugin directory of WPML, you can also request them to join the Go-global program of WPML and share this doc: https://wpml.org/documentation/support/go-global-program/

If Translation support is appropriately integrated, WPML should effectively filter and display language-specific content on the frontend. I hope you can understand the matter.

Please don't hesitate to reach out if you require any further assistance or clarification regarding this matter. I'm here to help and will gladly provide any additional support you may need.

Best regards,
Prosenjit

April 5, 2024 at 5:09 pm #15489208

deyvisB

Thanks for your support, nevertheless, I can see that the problem persists in the next section as shown in the attached image.

I have shared the information with the WP Travel Engine company, and hope they do their part on this.

Anyway, can you verify what is happening now?

04.04.2024-2Captura.JPG
April 5, 2024 at 5:36 pm #15489280

Alejandro
WPML Supporter since 02/2018

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hello!

I checked the code and found that it seems this is actually done on purpose, for some reason. Prosenjit had fixed the issue for only one of the setups but it seems that the other setups ("sort by" options for the "trip" widgets and other places as well) were also in need of the fix which i wanted to do for you but couldn't because of a restriction on the site.

I managed to download the files and made the changes there, but could you please go to your hosting's file manager or FTP and replace the patched files with the current ones?

The directory is wp-content/wte-elementor-widgets/includes

The patched files can be downloaded here: hidden link

Regards.