Title: Search function questions
Last modified: August 21, 2016

---

# Search function questions

 *  Resolved [LindaEve](https://wordpress.org/support/users/lindaeve/)
 * (@lindaeve)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/)
 * Hi Tobias!
 * I have a table press table that is shown on many pages in many ways using various
   filtering options (examples: [http://ccl.rutgers.edu/index.php/ictcore/cheminformatics/](http://ccl.rutgers.edu/index.php/ictcore/cheminformatics/)
   and [http://ccl.rutgers.edu/index.php/ictcore/comptox/](http://ccl.rutgers.edu/index.php/ictcore/comptox/)).
   I would like to show the entire table in a new page and include the search function.
   But I don’t see a way to include search in just one page, without including it
   on all the other pages (where I don’t want it). Is there a shortcode to include
   or exclude search?
 * Another idea I had is to have the search on a page with the table completely 
   blank, but using the search it brings up a filtered version. Is there any way
   to do that?
 * Thanks!
    Linda
 * [http://wordpress.org/extend/plugins/tablepress/](http://wordpress.org/extend/plugins/tablepress/)

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

 *  Thread Starter [LindaEve](https://wordpress.org/support/users/lindaeve/)
 * (@lindaeve)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675314)
 * Never mind the first question because I found the short code and got that working.
 * Still trying to see if the second question is doable.
 * Thanks!
    Linda
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675382)
 * Hi Linda,
 * thanks for your questions! Good to hear that you were already able to solve the
   first one!
 * For that second question: I do have a quite new solution for this, but it’s not
   that nice (in terms of flexibility and configuration) yet, so I can not guarantee
   that it will be useful.
    Please download and install the Extension from [http://tablepress.org/extensions/datatables-inverted-filter/](http://tablepress.org/extensions/datatables-inverted-filter/)
 * To use it, you will have the edit the contained PHP file: Line 22 contains an
   array of the page names (called “slugs”, which is the last part in the page’s
   URL, e.g. `comptox` in [http://ccl.rutgers.edu/index.php/ictcore/comptox/](http://ccl.rutgers.edu/index.php/ictcore/comptox/)),
   so you’ll have to adjust that.
    Then, this “inverted filter” function will be
   turned on for all tables on the page that use the filtering (i.e. there’s no 
   per-table activation possible, but only a per-page activation).
 * Regards,
    Tobias
 *  Thread Starter [LindaEve](https://wordpress.org/support/users/lindaeve/)
 * (@lindaeve)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675385)
 * Tobias, thanks for this possible solution and I will def. try it.
 * Enjoy your weekend!
 * Linda
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675386)
 * Hi Linda,
 * you are very welcome! Let me know how things go!
 * A nice weekend to you, too!
    Tobias
 *  Thread Starter [LindaEve](https://wordpress.org/support/users/lindaeve/)
 * (@lindaeve)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675497)
 * Tobias, thanks – just tried this and it works very well. It’s not pretty, but
   it does what I need! If you want to see the page it’s here:
    [http://ccl.rutgers.edu/index.php/ictcore/search-tools/](http://ccl.rutgers.edu/index.php/ictcore/search-tools/)
 * Thanks again,
    Linda
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675498)
 * Hi Linda,
 * yes, it would be nicer to hide the head row as well. Is that what you mean?
    
   Let me see if I can find a solution for that.
 * Regards,
    Tobias
 *  Thread Starter [LindaEve](https://wordpress.org/support/users/lindaeve/)
 * (@lindaeve)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675499)
 * Yeah, if I could have nothing but the search box it would be just about perfect(
   no head row, no “No matching records found”).
 * Thanks!
    Linda
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675500)
 * Hi Linda,
 * I’ve now added some code to the Extension that will hide the table (i.e. the 
   head row and the “No matching records found.” text), if the search field is empty.
 * To use that, just download a fresh copy from the link above and re-install it(
   with the necessary modifications to that array).
 * Regards,
    Tobias
 *  Thread Starter [LindaEve](https://wordpress.org/support/users/lindaeve/)
 * (@lindaeve)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675501)
 * Well, looks like we owe you another espresso…
 * Thanks so much Tobias!
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675502)
 * Hi Linda,
 * great to hear that this helps!
    And thanks a lot for that coffee, I really appreciate
   it! 🙂
 * Best wishes,
    Tobias

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

The topic ‘Search function questions’ 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/)

 * 10 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/search-function-questions/#post-3675502)
 * Status: resolved