Skip Navigation

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

This support ticket is created 4 years, 6 months ago. 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 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 0 reply, has 1 voice.

Last updated by bartV-2 4 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#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?