This thread is resolved. Here is a description of the problem and solution.
Problem:
You are using a custom plugin to modify the permalink structure for several custom post types that are linked to a parent post type via JetEngine relationships. The plugin is configured to dynamically include the parent festival’s slug in the child post URLs and uses WPML to translate the base slug. However, visiting the translated URLs results in a 404 Not Found error, suggesting a possible mismatch between the rewrite rules or WPML’s handling of the translated slug.
Solution:
We recommend not using the register/translate string hook for translating slugs as it is intended for PHP string translation, not slugs. Instead, create a custom post type (CPT) and its slug as outlined in our documentation. You can then easily translate it from WPML > Settings. Here are some helpful links:
If this solution does not apply to your case, or if it seems outdated, 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.
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 1 reply, has 0 voices.
Last updated by 1 month, 3 weeks ago.
Assisted by: Dražen.