Saltar navegación

[Resuelto] How to add hierarchical taxonomy filters in a view

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

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Zona horaria del colaborador: Asia/Kolkata (GMT+05:30)

Este tema contiene 17 respuestas, tiene 3 mensajes.

Última actualización por Minesh 2 years, 10 months ago.

Asistido por: Minesh.

Autor
Mensajes
#2630359

It works, thanks!
I'll have the view fixed quickly for you to have a look to it.

#2630423

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

Can you please share problem URL and admin access details as well as tell me what is your expected result.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2633719

Minesh
Colaborador

Idiomas: Inglés (English )

Zona horaria: Asia/Kolkata (GMT+05:30)

It will not work with ajax based views so I've added the Submit button as well as set the view's custom search setting to "Update the View results only when clicking on the search button".

I've changed the condition as given under:

[wpv-conditional if="( '[wpv-search-term param='wpv-pays']' eq 'canada')"] 
		<div class="form-group">
          <label for="wpv-pays">[wpml-string context="wpv-views"]Provinces[/wpml-string]</label>
		 [wpv-control-post-taxonomy taxonomy="ca-provinces" type="select" default_label="Province" url_param="wpv-ca-provinces"]
</div>
	[/wpv-conditional]
[wpv-conditional if="( '[wpv-search-term param='wpv-pays']' eq 'france')"]
		<div class="form-group">
	<label for="wpv-fr-villes">[wpml-string context="wpv-views"]Villes de France[/wpml-string]</label>
	[wpv-control-post-taxonomy taxonomy="fr-villes" type="select" url_param="wpv-fr-villes"]
</div>
	[/wpv-conditional]

Can you please confirm it works as expected now:
- enlace oculto

#2635215

It works, thanks!