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

Tagged: 

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