Title: Hide rows by default
Last modified: August 31, 2016

---

# Hide rows by default

 *  Resolved [pre20](https://wordpress.org/support/users/pre20/)
 * (@pre20)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/hide-rows-by-default/)
 * Hello, great plugin
 * My question is how to hide by default the content of selected table (all rows
   except the header or all the table if it’s easier) so when users search a word
   on the searching that contains every table, then appear the rows that match the
   word (and the header if it was hidden).
 * Thank you
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/hide-rows-by-default/#post-7097525)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * For this, you can use the TablePress Extension that is mentioned here: [https://wordpress.org/support/topic/i-want-the-table-to-be-invisible-until-filter-is-applied?replies=4#post-4823400](https://wordpress.org/support/topic/i-want-the-table-to-be-invisible-until-filter-is-applied?replies=4#post-4823400)
 * Regards,
    Tobias
 *  Thread Starter [pre20](https://wordpress.org/support/users/pre20/)
 * (@pre20)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/hide-rows-by-default/#post-7097812)
 * Hi,
 * I did what the link says and works but only on pages, not on posts. How do it
   also in posts?
 * And regarding to this topic, I have two more questions:
 * When I hide the rows, at the beginning the page loads and show all the rows and
   after that they became hide. Is it’s possible that the web don’t load rows until
   the user search someting on the table? (so it only have to load the rows that
   match the word)
 * When the rows are hidden, the show x entries don’t work. I mean, if the user 
   wants to see all the table rows how he can do that? Because there isn’t a word
   to search that was written in all of the rows and if he changes to 10 or all 
   entries the table don’t show anything.
 * Thanks!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/hide-rows-by-default/#post-7097813)
 * Hi,
 * to also have this on posts, you will have to modify the PHP code a bit.
 * Basically, the line
 *     ```
       if ( ! is_page( array( 'page-slug-1', 'page-slug-1' ) ) ) {
       ```
   
 * has to be extended to
 *     ```
       if ( ! is_page( array( 'page-slug-1', 'page-slug-2' ) ) && ! is_single( 'post-slug-1' ) ) {
       ```
   
 * Unfortunately, I’m not aware of a solution for those other two questions 🙁 The
   search only works on the actual page, that means the table has to be there already
   and can not be loaded after searching. Using the pagination or length change 
   will also not work, I’m afraid, as that contradicts the basic principle of how
   the inverted filtering works. Sorry.
 * Regards,
    Tobias

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

The topic ‘Hide rows by default’ is closed to new replies.

 * ![](https://ps.w.org/tablepress/assets/icon.svg?rev=3192944)
 * [TablePress - Tables in WordPress made easy](https://wordpress.org/plugins/tablepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tablepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tablepress/)
 * [Active Topics](https://wordpress.org/support/plugin/tablepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tablepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tablepress/reviews/)

## Tags

 * [default](https://wordpress.org/support/topic-tag/default/)
 * [hide](https://wordpress.org/support/topic-tag/hide/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/hide-rows-by-default/#post-7097813)
 * Status: resolved