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
wp-content\plugins\nd-travel\inc\metabox\mtb-cpt-3.php
and around line 164, replace:
$nd_travel_destinations_args = array( 'posts_per_page' => -1, 'post_type'=> 'nd_travel_cpt_3' );
with:
$nd_travel_destinations_args = array( 'posts_per_page' => -1, 'post_type'=> 'nd_travel_cpt_3', 'suppress_filters' => false );
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.
This topic contains 19 replies, has 2 voices.
Last updated by 1 year, 10 months ago.
Assisted by: Nicolas V..
