With the legacy editor you have a lot of control over the markup that is generated; it makes it more customisable, though may require manual intervention to do so.
In this case where you want the filters to initially be hidden and then appear when a "filter" button is clicked, you could inspect how it has been done on the website you linked to and then produce a bespoke implementation of the same on your site, which will involve customising the HTML markup output—which is just a question of changing what is included the editor sections of the View—and adding custom CSS and JS as required.
Or you could try to implement something using either a Bootstrap modal or accordion, which—again—involves modifying the markup output by the View so that, in this case, it corresponds to the Bootstrap requirements, while Bootstrap handles the main CSS and JS required.
See the Bootstrap documentation for modals and accordions at these links:
hidden link hidden link
Note that the filters are output by the "Search and Pagination" editor of the View, which itself is added to the page by the wpv-filter-meta-html shortcode in the Output Editor section at the end.
If you are not comfortable working on the custom markup required, then you could consult a Toolset contractor for help: https://toolset.com/contractors/
I need somehow more help with filter in the view, and how I can do this. I need also more an advise how I do set something up like this:
hidden link
I tried to add 2 checkboxes as filter (those are 2 checkbox fields I have in a Repeatable Group. But it's not what I expect.
So I should know if I use fields or if it's better to have taxonomies like category based?
And Toolset Repeatable Field Group is based on one-to-many relationship, so each Repeatable Field Group is a post type, you can not filter the results by fields of another post type.
Here is a test website:
Login URL: hidden link
Can you reproduce the same problem in above test site? I need a live website to test and debug.
Yes, it's basically the same in the demo website You sent the link.
I have imported basically everything we have now.
My general question is, would it be better to have fields for such search respectivaly filter criterias? Or would it be better, that we categorize those filter criterias - and use those categories for the filter?
I also could provide You here the login credentials to our website, but I don't see a way to add this in private.
Thanks for the details, I assume you are going to filter the results by fields of repeatable field groups "Beach Facts".
I have done below modifications in your website:
Edit post view "Phuket Beach View Main" hidden link
1) in section "Content Selection", enable option only "Beach Facts", disable option "Phuket Beaches"
2) in section "Loop item in Phuket Beach View Main", change the shortcodes to:
What I am just not sure, how to set the filters in the view, that it should show only those beaches (currently only one), when I am check the checkbox.
Toolset Repeatable Field Group is based on one-to-many relationship, so each Repeatable Field Group "Beach Facts" is also a post type, if you want to filter the results by fields of Repeatable Field Group "Beach Facts", you will need to:
- Query "Beach Facts" posts
- Filter by fields of Repeatable Field Group "Beach Facts"
- In view's loop, display it's related "Phuket Beaches" post information
You can not filter the results by fields of another post type "Phuket Beaches".
But in above post view, you can not setup filter on fields of Repeatable Field Group "Beach Facts", since "Phuket Beaches" and "Beach Facts" are different pos type, you can not filter the results by fields of another post type
I assume you are going to trigger the search form without submit button, I have edited the post view: hidden link
in section "Custom Search Settings", enable the option "AJAX results update when visitors change any filter values"
So far great, and it's what I expecting that it should do.
Quick question - if I like to create basically a separate view - respectively only the "search" part - with slightly different way and have a sumbit button, I just need to change to "AJAX results update when visitors click on the search button"?