- This topic has 2 replies, 2 voices, and was last updated 10 years, 7 months ago by .
Viewing 3 posts – 1 through 3 (of 3 total)
Viewing 3 posts – 1 through 3 (of 3 total)
Posted
by
Forums › Forums › Search & Filter Pro › Default Filter
Is it possible to have initial defaults set in a search form? For example, I have check boxes for filtering results by post type (Posts, Forums and my custom post types Resources and Projects). I’d like by default to have Resources and Projects selected but not Posts and Forums. Thanks in advance for any help.
You can change which are selected by default by using this developer filter:
Be sure to click through to the github example on how to modify the defaults, and you’ll probably also want to do that *only* when nothing has been filtered – to do that you can grab this code:
https://gist.github.com/rmorse/e76fea68c9aab874155a
Thanks