Translating taxonomy slugs
-
Hi,
I have a website running with this plugin on a lot of custom post types without any problems. All the post types have a translated slug so that the url are in the correct language too.
Then when I click one of the language switchers it correctly directs me to the corresponding post in that language. However, this breaks with custom taxonomies. the link still shows the slug for the current language, rather than the target language, resulting in a 404 page not found.
This made me look into the other links for custom post type posts, and the html here, displays the wrong permalink as well. So I’m thinking that its actually been wordpress redirecting me to the correct page all along, since wordpress seems able to “guess” urls when they are somewhat close enough – Though not able to do this with taxonomies.
Am I doing something wrong?
please let me know how I am suppose to handle correct slug changes for both post types and taxonomy archive pages. I am translating the slug like this:
'rewrite' => array( 'slug' => _x( 'season', 'URL slug', 'my-domain' ) ),..when registering the taxonomy
Thanks!
The topic ‘Translating taxonomy slugs’ is closed to new replies.