Saltar navegación

Este hilo está resuelto. Aquí tienes una descripción del problema y la solución.

Problem:
The client is experiencing an issue where post tags include an unwanted language suffix (e.g., -en) at the end.
Solution:
We have investigated the issue and consulted with our colleagues. Unfortunately, it is not possible to have identical slugs for taxonomy terms in different languages within WordPress. WordPress requires unique slugs for taxonomy terms, and if you attempt to create terms with the same slug, WordPress will append a numerical suffix to ensure uniqueness. Similarly, WPML follows this practice by adding the language code to the slug.

As of the current versions, you cannot modify these slugs to be the same from the WPML interface. If you change a category slug from the WPML interface, WordPress will add a number, and if you change it from the quick edit in WPML > Taxonomy translation, it will append the language tag.

This limitation is due to WordPress's functionality and is not something that WPML can fix. We apologize for the inconvenience and the lack of a solution in this case.

If this solution does not apply to your situation, or if it seems outdated, we recommend checking the related known issues, verifying the version of the permanent fix, and ensuring that you have the latest versions of themes and plugins installed. If the problem persists, please open a new support ticket with us.

Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.

Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.

Este tema contiene 1 respuesta, tiene 2 voces.

Última actualización por Lucas Vidal de Andrade hace 9 meses, 3 semanas.

Asistido por: Lucas Vidal de Andrade.

Autor Entradas
mayo 7, 2024 en 11:51 am

francisco-javierR-6

The post tags include an unwanted -en at the end.

mayo 7, 2024 en 12:58 pm
mayo 7, 2024 en 7:28 pm #15603816

Lucas Vidal de Andrade
Supporter

Idiomas: Inglés (English ) Español (Español ) Alemán (Deutsch ) Portugués, Brasil (Português )

Zona horaria: America/Sao_Paulo (GMT-03:00)

Hello,

I did some research, checked with my colleagues, and unfortunately, it's not possible to have the same slug in different languages.

Taxonomies can't be defined with the same slug on WordPress. If you try to create two taxonomy terms with the same slug in the same language, WordPress will automatically add a numbered suffix at the end of them to make them unique.

Therefore, WPML has been following that practice too. So while WordPress will add a number, WPML adds the language code to the slug.

With the actual versions, you can't change the same slugs from the WPML interface:

If you change a category slug from the WPML user interface, it will get a number (by WordPress) if you change it from the quick edit in WPML >Taxonomy translation it will get the language tag added.

This is something that should be fixed by WordPress. Not by WPML 🙂

I apologize for not having a solution, but in this case, there's a practical limitation.

mayo 8, 2024 en 7:18 am #15604552

francisco-javierR-6

ok