Background of the issue:
I am using Rank Math for SEO and Elementor to display breadcrumbs via the [rank_math_breadcrumb] shortcode on my multilingual site with WPML. Everything works fine except in Spanish. I have a custom post type archive for 'Internship abroad', which displays correctly in English and French breadcrumbs, but the Spanish version is missing the archive layer. The Spanish translation of that archive exists and is accessible at /es/practicas-en-el-extranjero/. The issue can be seen at hidden link.
Symptoms:
In the Spanish breadcrumb, the archive layer 'Prácticas en el extranjero' is missing. The expected output is 'Inicio > Prácticas en el extranjero > España > Madrid', but instead, I see 'Inicio > España > Madrid'.
Questions:
Why is the Spanish breadcrumb missing the archive layer?
How can I fix the breadcrumb issue in the Spanish version?