Title: Column filter widget include columns
Last modified: November 3, 2021

---

# Column filter widget include columns

 *  Resolved [zhangqiqi](https://wordpress.org/support/users/zhangqiqi/)
 * (@zhangqiqi)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/column-filter-widget-include-columns/)
 * Hi,
 * I need to regularly add new columns to my table but I only need column filters
   for the first 5 columns in the table. I am using the short code below achieve
   this.
 * `[table id=214 responsive="collapse" datatables_columnfilterwidgets=true datatables_columnfilterwidgets_exclude_columns
   =6,7,8/]`
 * I wonder, instead of specifying what columns I want to exclude from the filter
   widget, is there a way to simply specify which columns I want to include in the
   filter widget so that I don’t need to update the code every time I add a new 
   column?
 * Thank you
    -  This topic was modified 4 years, 6 months ago by [zhangqiqi](https://wordpress.org/support/users/zhangqiqi/).

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/column-filter-widget-include-columns/#post-15034148)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * I see what you mean, but unfortunately, I’ll have to disappoint you here. The
   underlying JavaScript code that’s behind this feature, only accepts a list of
   excluded columns at the moment. Thus, I’m not aware of a possibility to achieve
   this without extensive custom code modifications. Sorry.
 * Regards,
    Tobias
 *  Thread Starter [zhangqiqi](https://wordpress.org/support/users/zhangqiqi/)
 * (@zhangqiqi)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/column-filter-widget-include-columns/#post-15036580)
 * Thank you for your prompt response. Another question about the filter.
 * Is it possible to manually set the order of categories in column filters? The
   filter now uses alphabetical order. Thank you.
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/column-filter-widget-include-columns/#post-15039473)
 * Hi,
 * no, sorry, the values in the dropdowns are automatically sorted, from what I 
   know. I can’t see a possibility to set a custom order.
 * Regards,
    Tobias

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

The topic ‘Column filter widget include columns’ 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/)

 * 3 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/column-filter-widget-include-columns/#post-15039473)
 * Status: resolved