You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR lets you modify the search query for **native WP search** by adding hidden form fields to the search form like
`<input type="hidden" name="posts_per_page" value="20">`
or
`<input type="hidden" name="post_types" value="post,product">`
or
`<input type="hidden" name="cat" value="1,17,126">`
or
`<input type="hidden" name="category_name" value="books">`
This allows you to do some basic filtering and tuning on a *form by form* basis, as opposed to using the `searchwp_live_search_query_args` filter or the `searchwp_live_search_posts_per_page` filter which operate on all forms.
This PR yields a simple-ish solution for issues:
jchristopher#51jchristopher#86jchristopher#75jchristopher#31jchristopher#115.
Hi, I'm loving this plugin, thanks very much.
I've added a dropdown menu beside the search box in
searchform.php
containing all my categories.Could you point me in the right direction on how I can pass the dropdown category value onChange and initiate the AJAX search?
I know how to manually filter categories with
searchwp_live_search_query_args
but I'm not sure how to pass the dropdown value to that on-the-fly.Any pointers would be appreciated. Thanks.
The text was updated successfully, but these errors were encountered: