Background of the issue:
I created a Custom Post Type to insert custom posts, following the documentation on the Crocoblock website 'How to Make a JetEngine-Built Website Multilingual'.
I realized that I have to edit the meta fields manually in each language, so far so good.
When a Post Type is created, a slug is defined for it, in my case the slug was created in the default language.
In the WPML settings there is the option to define slugs for other languages, but even defining other slugs for other languages, when visiting the translated post the slug does not change.
I have already saved the permanent links again but it still does not use the defined slug. There in the String settings there are links for each language, but it is not changed when visiting the page.
Ex: Slug of the original post type: Portuguese.
Post type slug translated to Spanish: Spanish
The link would be: site.com/portuguese/post
Translated: site.com/es/spanish/post
But the translated one is now: site.com/es/portuguese/post
What should I do to change the slug when visiting a translated post?
Symptoms:
Despite defining slugs for other languages in WPML settings, the slug does not change when visiting the translated post. The translated post still uses the original language slug.
Questions:
What should I do to change the slug when visiting a translated post?
I read the documentation you sent me and it gave me some insight into the solution.
Since I'm using JetEgine to create the CPT, it has the option to rewrite the slug. This option was already activated and it automatically picked up the defined slug.
I just had to write another slug and the translations worked in the CPTs.
But I ended up running into another problem related to translation.
Inside the CPT Posts I have a form created with JetFormBuilder that was added with the form widget using Elementor.
The forms have already been translated as described in the crocoblock documentation, where each form has to be edited individually.
The forms are ok and say they are translations of the original form, however, when I visit the translated page, the form corresponding to the selected language is not pulled up.