Forums › Forums › Search & Filter Pro › filter dropdowns for 3 different criteria
Tagged: dropdowns
- This topic has 7 replies, 2 voices, and was last updated 6 years, 7 months ago by Trevor.
-
Anonymous(Private) May 15, 2018 at 2:23 pm #177641
Hi
I’ve just bought filter pro and I’m wondering if you could help me out
I’d like the ability to filter posts through the criteria of some dropdowns for the following
Distance
0 – 5 Miles
5 – 10 Miles
10 – 20 MilesTime Duration
1:00
2:00
3:00
4:00Skill Level
Beginner
Intermediate
AdvancedSo for example … I’d need to set up a post and somehow assign the specific Distance, Time Duration and skill level to that post. and then have dropdowns to filter the criteria so the relevant post shows.
The user wants to search for a “5-10 miles” cycle which takes “3 hours” and is “Beginner” Skill level
I’ve messed around using tags, but I’m struggling to create this setup. Is there any way that I can create this using your plugin?
Thanks
Jim
Trevor(Private) May 15, 2018 at 2:27 pm #177644You need to separate out groups, branches or parent/child taxonomy terms into separate taxonomies (or categories/tags). In general, you can use a particular Taxonomy (or Category/Tags, each Taxonomy and each Custom Field) only once in the form. This post tries to explain this a bit better (you can use a plugin to switch category terms from category to any new taxonomy that you make, so it is not so hard to do). It is a really awful preachy lecture I wrote:
https://support.searchandfilter.com/forums/topic/multiple-categories-combination/#post-55166
Sorry about the tone, but the message is right and it links to good plugins (except taxonomy switcher I think).
Anonymous(Private) May 15, 2018 at 4:16 pm #177665Thanks for your help on this Trevor
I’ve created 3 x taxonomies to filter the post, that you can see on this page
https://cycleskipton.co.uk/test-filter/
However when I change one dropdown, it immediately loads the new page
https://cycleskipton.co.uk/cycle-routes-results/?_sft_distance=0-5-miles
How would I be able to only load the posts on click of submit button? and can I load the search results directly under the search form via Ajax? Or does it always have to redirect to another page?
Thanks
Anonymous(Private) May 17, 2018 at 12:58 pm #178202Thanks Trevor
I’ve been looking at this thread
https://support.searchandfilter.com/forums/search/hide+content+until+submit/
To learn how to hide the results until I click the submit button
Is there a cleaner way to do this as it seems a bit hacky
Cheers
-
AuthorPosts