Tell us what you are trying to do? Show translated content with the same content template layout as the original language
Is there any documentation that you are following?
I talked to the WPML team and they said:
For some reason the usages aren't being saved here: lien caché
Is there a similar example that we can see?
lien caché is WRONG
lien caché is CORRECT
What is the link to your site?
lien caché
I tried with another custom post type, and it is the same problem.
The content template is 'CT for events'.
Hi there
We should be able to help with this, but first, can you clarify how you have been attempting to translate your content template?
This page details what you should be doing: https://toolset.com/course-lesson/translating-views-content-templates-archives-and-forms/
We will probably need access to your site to be able to investigate, is that okay?
Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.
Hello there,
Thank you for sharing that information.
I've been debugging this issue but I haven't found a solution yet.
I'd like to ask permission to make a copy/staging version of your site where I can debug this closely without affecting the live site.
I'll make sure to delete this copy as soon as we get this issue fixed.
I'm afraid of debugging directly on the live site and cause issues to your visitors. Also, it is important to test a different setup as part of the troubleshooting.
Thank you, please let us know.
Mateus
Sure, go ahead, I would also prefer not to impact the users, the site is slow enough as it is 😉
This is a passion project, done by a non-programmer...
Thanks for helping out!
Hein
Hello Hein,
I was able to fix the issue by following this procedure:
- Go to Toolset > Content Templates
- Edit the template for Events in English
- Switch to Dutch in the admin top bar
- In the content selection in the right bar, please select the CPT Event and save it
After that, I edited the Dutch template using the advanced translation editor just as a test, I made a small change and saved it to make sure that it wouldn't reset my steps above and the template remained correct.
Can you please check it and confirm it is working for you?
Best,
Mateus
just telling the clean up bot i still need help.
I simply did not have the time to test your suggestion yet, but will do asap.
The problem I am trying to solve is not in the translation of the Content Templates.
The problem is within my custom post-type called 'events'. In the english version of an event the CT is saved as 'CT for events', which is the correct template.
The problem that I have is that I cannot seem to save that CT choice in the translations of 'events'. It always reverts to 'Template Dynamically Assigned...'.
Because of that the front end is wrong. I gave you two links above to verify the difference.
Hello there,
I understand, but my steps were meant to fix the front end for the CPT.
Can you please check the links you shared, they seem to be loading the same design on my end.
lien caché
lien caché
Thank you, please let us know.
Mateus
Sorry, i jumped to conclusions.
Yes, the CT seems to be implemented correctly now.
I will now try to reproduce your solution on another event.
Thanks for the great support.