Saltar navegación

[Resuelto] Taxonomy search filter breaks with WPML string shortcode in default label

This support ticket is created hace 4 años, 5 meses. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Zona horaria del colaborador: America/New_York (GMT-04:00)

Este tema contiene 0 respuesta, tiene 1 mensaje.

Última actualización por bartV-2 hace 4 años, 5 meses.

Asistido por: Christian Cox.

Autor
Mensajes
#1917517

We are using toolset views and WPML on herva.be.
For this, a shortcode is used to manage translations in of our views. [wpv-control-post-taxonomy taxonomy="sector" type="select" default_label="[wpml-string context='viewtranslation']Choose your sector[/wpml-string]" format="%%NAME%%% (%%COUNT%%)" url_param="wpv-sector"]
But this causes problems.

As soon as you select your 'sector' or 'product group' at the bottom then it does not display the correct values.
If we leave the short code out of it everything works as it should.
[wpv-control-post-taxonomy taxonomy="sector" type="select" default_label="Choose your sector" format="%%NAME%% (%%COUNT%%)" url_param="wpv-sector"]

Of course, we need this to perform translations. Or do you guys have another way ( without us having to customize much ) to fix this problem?