Title: Filtering Tablepress before displaying
Last modified: August 24, 2016

---

# Filtering Tablepress before displaying

 *  Resolved [ivanrm](https://wordpress.org/support/users/ivanrm/)
 * (@ivanrm)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/)
 * I am trying to filter my tablepress table before displaying in my blog. I would
   like to be able to filter the table according to a value passed in the url before
   displaying it and then allow searching etc.. with the displayed values. If anyone
   can point me in the right direction to achieve this I would really appreciate
   it, thanks!
 * [https://wordpress.org/plugins/tablepress/](https://wordpress.org/plugins/tablepress/)

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168847)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Yes, this is possible with two TablePress Extensions. You could use the Extension
   from [http://tablepress.org/extensions/shortcode-filter-get-parameter/](http://tablepress.org/extensions/shortcode-filter-get-parameter/)
   on top of the Auto Filter Extension from [http://tablepress.org/extensions/datatables-auto-filter/](http://tablepress.org/extensions/datatables-auto-filter/)
 * That will filter using the DataTables JS library. To combine that with the “Shortcode
   Filter from GET parameter” Extension, you’ll need to change the line
 *     ```
       $attributes['filter'] = $filter_term;
       ```
   
 * to
 *     ```
       $attributes['datatables_auto_filter'] = $filter_term;
       ```
   
 * in the file tablepress-shortcode-filter-get-parameter.php.
 * (You could also use server-side pre-filtering (so that the user can’t remove 
   the filter word) by using the Extension from [http://tablepress.org/extensions/row-filter/](http://tablepress.org/extensions/row-filter/)
   instead, for which you then also don’t need that PHP code change.)
 * Regards,
    Tobias
 *  Thread Starter [ivanrm](https://wordpress.org/support/users/ivanrm/)
 * (@ivanrm)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168880)
 * Awesome! Thanks so much for the quick and concise response.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168897)
 * Hi,
 * no problem, you are very welcome! 🙂 Good to hear that this helped!
 * Best wishes,
    Tobias
 * P.S.: In case you haven’t, please [rate TablePress](https://wordpress.org/support/view/plugin-reviews/tablepress)
   here in the plugin directory. Thanks!
 *  Thread Starter [ivanrm](https://wordpress.org/support/users/ivanrm/)
 * (@ivanrm)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168907)
 * Hey one more quick question, I am trying to pass the value in the url for backend
   filtering. I have installed and activated the shortcode url and the row filtering
   plugins and I am trying to use them together and they aren’t working. I was able
   to just use the row filter separate but it seems using the two together has broken
   something. Sorry If I’m bothering ya. Thanks.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168913)
 * Hi,
 * did you change the Shortcode on the page with the table to that `[table-filter
   id=123 /]` Shortcode, and are all Extensions activated?
 * Regards,
    Tobias
 *  Thread Starter [ivanrm](https://wordpress.org/support/users/ivanrm/)
 * (@ivanrm)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168919)
 * Hey,
 * Yea, everything is installed and activated. I have it as [table_filter id=4 /]
   on my page with the underscore because that’s how it is on the site, I tried 
   it with a – and it just output [table-filter id=4 /] onto the page. Other than
   that it’s just not filtering. I have another parameter plugin installed, think
   that could be the issue?
 *  Thread Starter [ivanrm](https://wordpress.org/support/users/ivanrm/)
 * (@ivanrm)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168920)
 * I just disabled the other plugin and it still didn’t work.
 *  Thread Starter [ivanrm](https://wordpress.org/support/users/ivanrm/)
 * (@ivanrm)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168921)
 * Haha, I figured it out! I changed that line of code trying the other way before
   I used the second choice (which Im using) and forgot to change it back. Working
   perfect! Five stars man, thanks for the plugin. As soon as I am able I’ll contribute
   some $.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168929)
 * Hi,
 * great! 🙂 Good to hear that everything is working now!
    And thanks for wanting
   to donate, I really appreciate it!
 * Best wishes,
    Tobias

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

The topic ‘Filtering Tablepress before displaying’ 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

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

 * 9 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/filtering-tablepress-before-displaying/#post-6168929)
 * Status: resolved