Skip Navigation

[Closed] CPT Custom Archive Slug not translateable

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 1 reply, has 1 voice.

Last updated by Mateus Getulio 1 week, 2 days ago.

Assisted by: Mateus Getulio.

Author
Posts
#2787632
Screenshot 2024-12-11 115317.png

I have a custom website using Toolset and WPML.

My custom post type has the slug of "circuit". I am able to translate this in Portuguese to "circuito".

However, I am also using a custom archive slug (see image) of "circuits". I need to translate this in Portuguese to "circuitos", but this does not appear in WPML's string translator.

Please can you advise?

#2788038

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hi,

I'm afraid that there is a limitation in WPML where the slug of the archive can only be translatable if it's equal to the slug for single posts.

"WPML allows has_archive to be set to a string. However, if the string value is set to something other than rewrite['slug'], or the custom post type name slug is not set, the archive slug will not be translatable.": https://wpml.org/documentation/support/translating-slugs-for-custom-post-type-archives/

It means that in order to make the archive slug translatable, it must match the 'rewrite['slug']' or the custom post type name slug.

The development team is aware of this limitation and is actively exploring solutions. While we are expecting to solve this limitation in the future versions of WPML, I do not have any ETA for this update.

Regards,
Mateus

The topic ‘[Closed] CPT Custom Archive Slug not translateable’ is closed to new replies.