Skip Navigation

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

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 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 17 replies, has 3 voices.

Last updated by Minesh 1 year, 3 months ago.

Assisted by: Minesh.

Author
Posts
#2630359

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

#2630423

Minesh
Supporter

Languages: English (English )

Timezone: 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
Supporter

Languages: English (English )

Timezone: 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:
- hidden link

#2635215

It works, thanks!