I am trying to:
Create a page where users can search on a word through the search form in views. This should run after the user click the search button(or hits enter)
Link to a page where the issue can be seen:
hidden link
I expected to see:
A search that runs after clicking the submit button. And a separate category filter that runs before or after the custom search. Where the results change(ajax) after changing filter values
Instead, I got:
A submit button that can only run a combined filter + search query. If the above is not possible i would like to have the search run after the users hit enter, which it also does not do right now.
Instead, I got: A submit button that can only run a combined filter + search query.
I'm not sure I fully understand what you would like to accomplish. Will this work?
- In the Custom Search settings for this View, choose the option "AJAX results update when visitors change any filter values"
- Insert a text search field and a submit button in the Filter Editor
- Insert the category filter in the Filter Editor
- In the Loop Output editor, include the information about each post
I created a mockup search View here you can interact with:
https://christiancox-22119-rtl-1.discover-wp.com/team-member-search/
Please let me know if I've misunderstood your request.
Hi i think i found out what cuases the problem through your awnser. I placed the search function in the output textfield becasue of the way the client wanted it styled. When i put the search on the filter box it does work.
Is there any way of splitting the location of the category filter and the text search?
The text search field must be in the Filter Editor area, but you can add any HTML markup necessary in the Filter Editor, Loop Output Editor, and Filter / Output Integration editor to make it look like the search field and checkboxes are separate. For example, you can create a full-width div that contains the text search, submit button, and sorting options. Then in the next row, create a column using CSS that contains the checkbox filters, and create another column using CSS that fills the remaining space and holds the results.