404's when translations are disabled on custom post type
-
First of all I would like to thank you for this great plugin! I use it a lot and until now I could figure everything out with some tinkering.
But this time I’ve ran into a little problem. I have a website with 3 custom post types. 2 of them have to be translated, 1 doesnt. This is because the first 2 have custom fields that need to be translated, so the custom fields can’t be synced. But the 3rd one DOES need to have the custom fields synced, but doesnt have to be translated.
Because I have the translation disabled on the 3rd one, the language code is removed from the URL. This however creates a conflict with get_post_type_archive_link() for example. It still includes the language code, even though the translation on the custom post type is disabled, causing a 404.
Is there a way to keep the language code in the url, so it doesnt 404? Or another solution?
Is this a bug?
- The topic ‘404's when translations are disabled on custom post type’ is closed to new replies.