Title: Button Filtering
Author: Tobias Bäthge
Published: March 6, 2014
Last modified: May 8, 2025

---

# Button Filtering

**Download**:
[DataTables Button Filtering Extension 1.1](https://tablepress.org/download/extension/tablepress-datatables-button-filter.zip?output_format=md)

To use this, download, install, and activate the Extension like a regular WordPress
plugin. Then, on the page where you want to show the table, insert the extended 
Shortcode

    ```language-plaintext
    [table id=123 datatables_button_filter=true /]Code language: plaintext (plaintext)
    ```

and change the `123` to the desired table ID. After that, you can add HTML code 
like

    ```language-xml
    <button class="table-123-filter" data-filterterm="searchterm">Button text</button>Code language: HTML, XML (xml)
    ```

anywhere on the page, to create a button that will run the filter when clicked. 
You will need to adjust the table ID (`123` in the example) and the value for the`
data-filterterm` attribute.

If this Extension is useful for you, please check out the available [TablePress Premium features](https://tablepress.org/modules/)
and consider getting a [Premium license plan](https://tablepress.org/pricing/), 
which bring even more features for you and your site visitors. Thank you!