This filter works well.
Then:
- I have activated WPML with 6 languages
- I'm going to WPML -> Translation managment -> Custom post, I have activated the option "User different slug for the different languages in product".
I see correctly the slug "catalog/%tipology%". Inside the fields I have typed in the relative translation, for example:
IT -> "catalogo/%tipology%"
FR -> "catalogue/%tipology%" On the wp-admin I see that the permalink is rewriting correctly but when I see the frontend I have the 404 error.
I have already saved again the permalink...
I have already translated the string "catalog/%tipology%" inside WPML->Translation string but it doesn't work... 404 error...
Thanks for contacting support, I'll do my best to help you with this! 🙂
To tell you the truth I'm not sure about this behaviour. I understand how are you modifying the product permalinks but I'm not quite sure about the consequences and implications that could affect WPML.
Just to test, have you tried if the result is the same without translating the CPT slug?
In any case, I think that this issue will imply a deeper debugging, so, could you please provide us the following?
1- Complete backup of your site: I'd suggest you to install and use 'Duplicator' plugin to generate the backup (package) of your site (you can exclude uploads folder to reduce the size).
2- Backend/ftp credentials: I'll enable you a private form on your next reply where you'll be able to share us your backend and ftp credentials with us in a private and secure way. Please fill all required fields to let us take a deeper look at your site configuration and files.
Once we have the backup ready and the credentials we'll log on your backend and download the backup directly from there and use it to replicate and debug your issue on our private local servers.