Forums › Forums › Search & Filter Pro › Preselecting Filter
- This topic has 4 replies, 2 voices, and was last updated 10 years ago by Ross.
-
Ross Moderator(Private) October 28, 2014 at 10:33 pm #6616
Hey Tom, do you mean so that the search already has some options preselected in the dropdowns etc, or so that there are some default “contraints” for example, the search will only search in specified categories, regardless of user selected filters?
Anonymous(Private) October 29, 2014 at 1:50 pm #6640Lets say I have custom post type “Cars” then a few categories like “Sports, Exotic, Antique”. The categories are going to be a filter drop drop down. On another totally separate page I want to include a link to “exotic cars”. When user clicks link I would like the “exotic” category option to be selected upon page load.
Ross Moderator(Private) October 29, 2014 at 4:42 pm #6655Hey Tom
If you are not using ajax, then the best way to do this is to go to your search page, leave everything blank but change to “exotic cars”, then press search.
You can then copy and paste this URL and it will always have exotic cars selected.
It is not possible with Ajax for now but I plan to add it sometime down the line.
Thanks
Ross Moderator(Private) November 4, 2014 at 3:13 pm #7005Hey Tom
Just to update you, the next version supports this same method for above ajax – it should be released in the next couple of days.
Thanks
-
AuthorPosts