[Resolved] some areas from “destinations” are not translated in French
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with translating the 'destinations' section in French using Elementor on your site, and the Spanish translations are working fine, the issue might be related to the 'Travel Management' plugin. Specifically, the shortcode nd_travel_destination_packages used in the Elementor template might be referencing an incorrect language ID for translated posts, causing it to display only the first destination. Solution: We recommend modifying the plugin's code as a temporary workaround. Please note, this plugin and the parent theme are not compatible with WPML, and any changes might be overwritten during plugin updates. Here are the steps: 1. Navigate to
2. Edit the translated destination in the admin panel, select the correct destination, and save. Since this solution might become outdated or might not apply 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 the issue persists, please open a new support ticket.
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.
The translation for the second language (french) in some area “destinations” is not working properly, the first language translation (spanish) is ok but the french is not translating conde.travel/fr/destinations cant translate using the elementor option.
As discussed I would need to replicate your site on our servers so that our second tier support team can investigate further.
For this, you need to temporarily install a plugin called “Duplicator” on your site. This will allow you to create a copy of your site and your content.
I have activated a private field for you where you can share those files (package + installer).
- You MUST exclude /wp-content/uploads and /wp-content/cache from the copy to reduce the size
- Once the package is ready, if the files are too large to upload them to the private field, you can share a link to Google Drive, Dropbox, WeTransfer or any other similar service.
Since yesterday I cant use the search form. When I search any tour keyword it shows me only 4 tours all the time the same tours but no results, could you tell me if you made other kind of changes related to this problem? I dont know what could be the problem now
Our team is still investigating. Actually your ticket got escalated to an higher level.
About the search, here is what we did during the conversation:
- Re-translate the "Destination single" template
- Delete all FR translations and redo 2 quick translations
Maybe your search form use some cache or index for performance, in that case re-index your content.
I can't give you an ETA as the fatal comes from Elementor itself and not our plugin, but the fact that the error happens only on your secondary language could relate to WPML. So we need to investigate further. I'll keep you posted as soon as possible.
The problem is coming from "Travel Management" plugin. There is a shortcode nd_travel_destination_packages (Defined in wp-content\plugins\nd-travel\inc\shortcodes\nd_travel_static_shortcodes.php) used in the Elementor template.
It uses the parent destination ID which is set to destination post. However, this ID belongs to an incorrect language for translated posts. So shortcode displays the first destination.
Disclaimer: This plugin and the parent theme are not compatible with WPML.
1. The code provided below is a workaround and you will need to edit the plugin's code. Which means that every time you update the plugin your code will be overwritten and you will need to edit it again.
- We won't support this code in the future. We recommend you to contact the author and provide this solution, so they can implement it in their code.
2. We also recommend you to search for a compatible alternative here: hidden link
Workaround
- Edit wp-content\plugins\nd-travel\inc\metabox\mtb-cpt-3.php around line 164
replace:
I'm not sure to be honest. It could be related to the workflow used for Spanish? The way you translated in Spanish the page containing the shortcode or maybe you created another shortcode in Spanish or even modified the shortcode in the Spanish page using the WordPress editor?
Please let me know if the solution provided works fine.
I tried to log into your dashboard to see if I could reproduce the error but it requires a two step verification with a code. Could you please remove that protection while I'm working on your site?