Title: Custom Defined FIlters
Last modified: July 7, 2020

---

# Custom Defined FIlters

 *  Resolved [trorie](https://wordpress.org/support/users/trorie/)
 * (@trorie)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/)
 * Is there way to add custom defined filters to perform searches on a form? Meaning,
   a drop-down list of keywords or search links.
 * Thanks,
    Trorie

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

 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13091779)
 * Hi,
 * thanks for your post, and sorry for the trouble.
 * Do you mean pre-defined search terms? Or the entries from a certain column? For
   the latter, the TablePress Extension from [https://tablepress.org/extensions/datatables-columnfilterwidgets/](https://tablepress.org/extensions/datatables-columnfilterwidgets/)
   could maybe be worth a look.
 * Regards,
    Tobias
 *  Thread Starter [trorie](https://wordpress.org/support/users/trorie/)
 * (@trorie)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13091888)
 * Hi TobiasBg,
 * Thanks for the quick response! Yes, I do mean pre-defined search terms. For example,
   if I have a table with “Washington”, “Virginia”, or “California” as location 
   values, I want users to be able to select one of these options to see all the
   entries that exist with these options. However, I want this to work as a search
   option, not a sort.
 * Thanks,
    Trorie
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13091916)
 * Hi,
 * then, the mentioned TablePress Extension might be worth a try here. It can generate
   such dropdowns from the table columns automatically.
 * Regards,
    Tobias
 *  Thread Starter [trorie](https://wordpress.org/support/users/trorie/)
 * (@trorie)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13091956)
 * Thank you! I will give it a try!
 * Trorie
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13092132)
 * Hi,
 * hope this helps 🙂
 * Best wishes,
    Tobias
 *  Thread Starter [trorie](https://wordpress.org/support/users/trorie/)
 * (@trorie)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13095269)
 * One more question. Is there a way to make the search box itself into a list of
   drop down values, or will this require a little coding?
 * Thanks,
    Talvina
 *  Thread Starter [trorie](https://wordpress.org/support/users/trorie/)
 * (@trorie)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13096003)
 * Hi Tobias,
 * Please disregard my last question. I think I figured it out with the Plugin that
   you suggested.
 * Thanks,
    Talvina
 *  Thread Starter [trorie](https://wordpress.org/support/users/trorie/)
 * (@trorie)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13096269)
 * I do have one question about the ColumnFilterWidgets extension. Is there a way
   to specify what I want to display in the drown-down? I don’t want to pull it 
   from the column, because the some columns in the table may have multiple values.
 * Thanks,
    Talvina
 *  Plugin Author [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * (@tobiasbg)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13100183)
 * Hi,
 * no, sorry, manually specifyfing these values is not possible.
    However, if there
   are multiple terms in the same cell of the column, you could use the `datatables_columnfilterwidgets_separator`
   Shortcode parameter that is explained on the Extension’s webpage, to use all 
   of them automatically.
 * Regards,
    Tobias

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

The topic ‘Custom Defined FIlters’ 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/)

 * 9 replies
 * 2 participants
 * Last reply from: [Tobias Bäthge](https://wordpress.org/support/users/tobiasbg/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/custom-defined-filters/#post-13100183)
 * Status: resolved