Passer la navigation

[Résolu] Radio and Select for same taxonomy on same page not working

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I would like to use both radio buttons (desktop) and a dropdown (mobile) in the same View and toggle visibility with CSS, but the radio buttons do not work on desktop while the dropdown works on mobile.

Solution:

Having two filter controls for the same query in one View is not supported. Create two separate Views—one for radio buttons and one for the dropdown—to achieve this setup.

This support ticket is created Il y a 1 weeks, 4 days. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Ce sujet contient 1 reply, a 1 voix.

Dernière mise à jour par kristofG Il y a 1 weeks, 4 days.

Assisté par: Christopher Amirian.

Auteur
Publications
#2820715

Instead of making (an maintaining) a View for Desktop (radio buttons) and a view for Mobile (dropdown) I would like to place them both in the view and toggle visibility via CSS.

<span class="controls-desktop">[wpv-control-postmeta field="wpcf-doelgroep" type="radios" url_param="wpv-wpcf-doelgroep"]</span>
<span class="controls-mobile">[wpv-control-postmeta field="wpcf-doelgroep" type="select" url_param="wpv-wpcf-doelgroep" default_label="Kies een doelgroep"]</span>

The radio buttons don't work on desktop.
But the dropdown does work on mobile.
lien caché

#2820716

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi,

Welcome to Toolset support. Having two sets of filters like the one you have in one view is not supported. One filter control is tied to one query filter; duplicating it in the same View breaks the binding.

You will need to create two separate views for that.

Thanks.

#2820840

thank you