Background of the issue:
I am experiencing a problem with the archive URL generation for a non-translatable custom post type (Webinars) in WPML on my site hidden link. I am trying to resolve an issue where WPML is generating a language-prefixed archive URL for a custom post type that is set as non-translatable, specifically affecting the Spanish language.
Symptoms:
Unexpected archive URL /es/webinars/ is generated for a non-translatable custom post type, causing redirects to the homepage.
Questions:
Why is WPML generating a language-prefixed archive URL for a non-translatable custom post type?
How can I prevent WPML from causing redirects for non-translatable custom post types?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I can sadly still not log in. The dialog asked me to enter my email to receive a login code, but the email never arrived.
The problem here might be that if the post type is set to "Not translatable", then WPML is ignoring it, and this might be why your theme template works in both languages.
If you do not plan to translate the CPTs, I suggest setting them to "Translatable - only display translated content," which should typically resolve the issue.