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
Is your enhancement related to a problem? Please describe.
The problem I'm currently facing is that I was unable to find a way to have multiple search fields that are capable of querying specific/different post types in the search.
Describe the solution you'd like
A way to be able to adjust the query before autosuggest fetch based on the input field information (like id, class, etc).
Designs
Add a check for a window function just like epDataFilter to allow query customization before fetching the results.
Describe alternatives you've considered
Any other implementation that requires less effort or that is already implemented and is just not on the sight atm would be highly considered.
Additional context
With this abstraction not only the post types would be customizable but pretty much anything within the query.
The text was updated successfully, but these errors were encountered:
While the #2136 PR is being evaluated. It is possible to use the following workaround:
Given you have those two input fields within your page:
...
<!-- This is the main/default search field --><inputtype="search" id="defaultSearch">
...
<!-- This is the custom search field --><inputtype="search" id="customSearch">
...
you could use the following JS to enable custom query:
Is your enhancement related to a problem? Please describe.
The problem I'm currently facing is that I was unable to find a way to have multiple search fields that are capable of querying specific/different post types in the search.
Describe the solution you'd like
A way to be able to adjust the query before autosuggest fetch based on the input field information (like id, class, etc).
Designs
Add a check for a
window
function just likeepDataFilter
to allow query customization before fetching the results.Describe alternatives you've considered
Any other implementation that requires less effort or that is already implemented and is just not on the sight atm would be highly considered.
Additional context
With this abstraction not only the post types would be customizable but pretty much anything within the query.
The text was updated successfully, but these errors were encountered: