Hello,
I have a website in two languages with polylang
Everything works correct, except the content template of my custom post type "articles"
In the main language it loads the template without problem, but when I switch to the secondary language, it throws a 404 error and the template and the post are not displayed
From what I can see in content templates it puts 2 but only 1 is visible, I attach an image.
The translated template has been created, so it exists for both languages and to avoid conflicts, I have put a conditional on each template, which is fulfilled correctly.
The problem was an external function to change the permalinks, Thnaks