Forums Forums Search & Filter Pro filter dropdowns for 3 different criteria

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Anonymous
    #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 Miles

    Time Duration
    1:00
    2:00
    3:00
    4:00

    Skill Level
    Beginner
    Intermediate
    Advanced

    So 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
    #177644

    You 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
    #177665

    Thanks 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

    Trevor
    #177683

    On the General settings tab, find the Auto Submit option and disable it.

    Anonymous
    #177857

    Thanks Trevor, that’s worked, is there also a way to load the posts within the same window without a page refresh?

    Trevor
    #177880

    You need to have Ajax enabled on the Display Results settings tab and you need to have the form on the results page instead, and start with that results page, not the test page.

    Anonymous
    #178202

    Thanks 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

    Trevor
    #178208

    That is the only way to do it for now, assuming you are using our Shortcode Display Results method.

Viewing 8 posts - 1 through 8 (of 8 total)