Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 2 replies, has 1 voice.

Last updated by thomasS-38 1 year, 10 months ago.

Assisted by: Prosenjit Barman.

Author Posts
August 29, 2023 at 10:17 am #14305969

thomasS-38

Hi. I'm still trying to figure out the whole archive slug thing.
I just can't get it to work.
They either don't translate, or they stay singular.

August 29, 2023 at 10:19 am #14305971

thomasS-38

How do i start a chat? The chat option has disappeared.

August 29, 2023 at 10:46 am #14306223

thomasS-38

Nice. I cannot close this ticket because of a Javascript error in the reply form. So i will just post my answer here. You may close this ticket after you read it.

Unfortunately, WPML does not support native WP features such as a different archive slug than the post type slug.
This is really an issue since many would want "/books" for the archive page, and "/book/harry-potter/" for the single post. With WPML you have to choose, because it relies on the rewrite=>["slug" => __('book')] value.

I hope this will be fixed, since it is a native WP feature.

If i use "has_archive" = __('books') without WPML, and switch the WP language, it will work as intended and and the archive will be named and translated correctly.