I am trying to ceate a table view from custom posts that can be filtered.
The table view is farily straight forward other than having to use CSS for the styling but there does not seem to be a way to add filters to a table view as I can with the other views
Is there a similar example that we can see?
hidden link the table part way down the page is similar to what I want - certainly the same functionality
Hello,
You can follow our document to add filters to query:
https://toolset.com/documentation/user-guides/views/filtering-views-by-custom-fields/
Filtering Views Query by Custom Fields
https://toolset.com/documentation/user-guides/views/filtering-views-by-taxonomy/
Filtering Views Query by Taxonomy
If you are using legacy editor to setup the post view, please make sure you have enabled below option:
Edit the post view, click "Screen options", enable option: Query Filter
Hi,
I have already looked at that documentation and it does not seem to relate to the issue I have asked.
Please can you take a further look at this and if possible please can it be switched to someone operating in a closer time zone? 8 hours difference is a working day 🙁
Thanks
Steve
Hi there,
I took over this ticket due to the timezone request.
Please follow the steps below:
- Go to "Toolset > Settings > General".
- Find the "Editing experience" section.
- Check the "Show both the legacy and Blocks interface and let me choose which to use for each item I build" checkbox.
- Reload the browser page.
- Go to the newly added "Toolset > Views" menu.
- Add a new view.
- Make sure that you select the option that contains search functionality.
- Click the Loop Wizard for the view and make sure you select the TABLE display method.
- In the search and "Search and Pagination" use the New Filter button to add your filters.
I created a sample one here and it worked ok:
hidden link
Thank you.
Hi Christopher,
Thank you for taking over - great to get a response faster than I was expecting.
I see you are asking for this to be done using legacy - I was wanting to use blocks and have never used teh legacy way so two further questions for you.
1. can this be done with checkboxes rahter than text entry for the filter so for example having a check box for 1 bed and a checkbox gor 2 bed etc?
2. Assuming so - can you point me to the right dcumentation to get a grip on this legacy method - unless I can do it in the blocks?
Thanks
Hi there,
It is possible to have the table view using the block editor. I recorded a video to show the details:
hidden link
I think I answered all the questions that you asked in the video.
Just to recap:
- YOu can use block editor and add table view
- You can add search in the table view
- You can change the type of the input for the search to dropdown or checkbox
- Basically yes to any question that you had 😀
Thanks.
My initial issue with this is resolved for now and I can move forward and see that it works for me now. Thank you!