Saltar navegación

[Resuelto] Radio and Select for same taxonomy on same page not working

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

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 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.

Este tema contiene 1 respuesta, tiene 1 mensaje.

Última actualización por kristofG 1 weeks, 4 days ago.

Asistido por: Christopher Amirian.

Autor
Mensajes
#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.
enlace oculto

#2820716

Christopher Amirian
Colaborador

Idiomas: Inglés (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