Skip Navigation

[Resolved] Adding filters to a table view

This thread is resolved. Here is a description of the problem and solution.

Problem:

How to add search and filter to a view table.

Solution:

- You can use block editor and add a 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

Check this video:

https://www.loom.com/share/de3ffe51dfba4adfa4044b703a7e8396

This support ticket is created 2 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 6 replies, has 3 voices.

Last updated by steveN-4 2 years, 7 months ago.

Assisted by: Christopher Amirian.

Author
Posts
#2363401

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

#2364103

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

#2364221

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

#2364369

Christopher Amirian
Supporter

Languages: English (English )

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.

#2364483

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

#2364931

Christopher Amirian
Supporter

Languages: English (English )

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.

#2364943

My initial issue with this is resolved for now and I can move forward and see that it works for me now. Thank you!