Permalink rewriting for non-translated custom types
-
Hi there,
Using 1.1.4 on WP 3.6
I’ve set up a custom post type with a slug of “artist” which handles multilingual content on its own via Advanced Custom Fields – I’ve not enabled polylang for it – and seems to work just fine, I pick up the active language and display data from a custom field accordingly when rendering the post.
My only minor problem is that when accessing such a custom type, for example:
https://localhost/en/artist/artist-name
The locale is ommited and the url is redirected to
https://localhost/artist/artist-name
The rest of the elements of the page are properly translated since the cookie is set but is there a way I could get it to not redirect to a non-locale url?
Naturally, if I enable polylang for the custom type and I set each post’s language they are only displayed if the user has selected that language, which is not the desired behaviour.
- The topic ‘Permalink rewriting for non-translated custom types’ is closed to new replies.