Title: Filtering Table
Last modified: September 1, 2016

---

# Filtering Table

 *  Resolved [adriman2](https://wordpress.org/support/users/adriman2/)
 * (@adriman2)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/filtering-table/)
 * I want to use one single table on multiple pages but filter them deppending on
   the page. For instance lets say I have a table with a “color” column. If I go
   to ‘all’ page I want to show all my entries. In the ‘blue’ page I want to show
   the table only with blue as value for the color column.
 * I thought about updating the value in the search field but didn’t find a way.
 * Thanks for any recommendation!
 * [https://wordpress.org/plugins/data-tables-generator-by-supsystic/](https://wordpress.org/plugins/data-tables-generator-by-supsystic/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/filtering-table/#post-7588276)
 * Hello!
    I’m sorry for late reply. You can do it using css styles for your table.
   You need to add such css styles into the page with table –
 * variant 1 – it will hide only one column you need –
 *     ```
       <style type="text/css">
       #supsystic-table-1 th:nth-child(3), #supsystic-table-1 td:nth-child(3) {
           display: none;
       }
       </style>
       ```
   
 * where –
    1 – is ID of the table; 3 – number of column.
 * variant 2 – will hide all columns in the table except one you need –
 *     ```
       <style type="text/css">
       #supsystic-table-1 th:not(:nth-child(3)), #supsystic-table-1 td:not(:nth-child(3)) {
           display: none;
       }
       </style>
       ```
   
 * Please try it.
 *  Thread Starter [adriman2](https://wordpress.org/support/users/adriman2/)
 * (@adriman2)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/filtering-table/#post-7588300)
 * Hey thanks for the answer, I’m sure it will be useful in the future. Nonetheless
   I’m trying to filter the table, I don’t want to hide any of the columns.
 * Another example: [In this table..](http://https://s.w.org/plugins/data-tables-generator-by-supsystic/screenshot-1.jpg?r=1459793)
   Let’s say I want to show all the entries in which _position_ contains _Engineer_.
   And do that depending on the page that the user is.
    Just like the search input
   would do, but doing it automatically depending on the page. Hope there’s a way
   I already tried it a lot but didn’t find a way yet.
 * Thanks in advance!
 *  Plugin Author [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * (@supsysticcom)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/filtering-table/#post-7588318)
 * Hello!
    You cannot implement this using css code. For this purpose you need special
   script. When you will finish the real table on your site and will decide with
   all nuances – please contact us through our [internal support](https://supsystic.com/contact-us/)
   and describe us detail what exactly you need. We will help you to solve the problem.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Filtering Table’ is closed to new replies.

 * ![](https://ps.w.org/data-tables-generator-by-supsystic/assets/icon-256x256.png?
   rev=1158691)
 * [Data Tables Generator by Supsystic](https://wordpress.org/plugins/data-tables-generator-by-supsystic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/data-tables-generator-by-supsystic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/)
 * [Active Topics](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/data-tables-generator-by-supsystic/reviews/)

## Tags

 * [data table](https://wordpress.org/support/topic-tag/data-table/)
 * [filter](https://wordpress.org/support/topic-tag/filter/)
 * [page](https://wordpress.org/support/topic-tag/page/)

 * 3 replies
 * 2 participants
 * Last reply from: [supsystic](https://wordpress.org/support/users/supsysticcom/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/filtering-table/#post-7588318)
 * Status: resolved