Skip Navigation

[Resolved] Content template gives 404 error in custom post type translated with polylang

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 1 voice and has 0 replies.

>
Author
Posts
#2628091
Captura de pantalla 2023-07-28 152057.png

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.

#2628111

The problem was an external function to change the permalinks, Thnaks