Custom Post Type slug translation leading to 404 error
-
Hi.
I’ve been doing much reading regarding the relation between Translatepress and Custom Post Types in WordPress, as I came up to an issue that results in 404 errors whenever I activate de language switcher and enable the translation of my website to a second language (English in this case; Spanish is the original).
As you can see, when the plugin is activated and the user browses the website in its original language (Spanish), all the links in its main menu categories operate correctly. They lead to the custom post types corresponding to Team Members (Miembros de Equipo, in Spanish) and Services (Servicios, in Spanish), which also have slugs in Spanish. But when you activate the English translation (with the Translatepress switcher in the main nav bar), these navigation menu subcategory links are also translated (from “miembro_equipo” to “team_member”, and from “servicio” to “service”), resulting in a 404 errors. What I see is that it is an issue that only happens with navigation menu items that point to custom post types. The plugin does not do the same with links to pages.
Any ideas on how to solve it? Thanks in advance.
The page I need help with: [log in to see the link]
- The topic ‘Custom Post Type slug translation leading to 404 error’ is closed to new replies.