Title: Filtering pods
Last modified: August 20, 2016

---

# Filtering pods

 *  Resolved [Matt Lowe](https://wordpress.org/support/users/squelch/)
 * (@squelch)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/filtering-pods-1/)
 * Hi,
 * I’m trying to filter my pods in a Pods Page.
 * I don’t know if I’m misunderstanding how filters() works or whether this is a
   bug, but the filtering doesn’t seem to happen. The filter controls are echoed
   to the page as expected, but in the browser when I choose some filters from the
   generated dropdowns it makes no difference to the pods that are displayed on 
   the page. I’ve not seen any bug reports that relate to this, so I’m thinking 
   I must be misunderstanding the docs.
 * Here’s what I’ve got so far (simplified) which is pretty much identical to the
   examples in the docs:
 * [http://pastebin.com/1nuc8VQh](http://pastebin.com/1nuc8VQh)
 * The documentation for filters() doesn’t state whether the method only outputs
   the filters form or whether it also applies the selected filters, but the example
   code on [http://podsframework.org/docs/filters/](http://podsframework.org/docs/filters/)
   suggests that it should also filter:
 *     ```
       // Get the items, search is automatically handled
       $pod->find();
       ```
   
 * Looking at the docs for find() the only thing I see that relates to filtering
   is the “WHERE” parameter. Do I need to collect all of the selected filters from
   the GET/POST variables and turn them into an sql-like where statement to feed
   to pods->find()? Or something else?
 * Any help greatly appreciated!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/)
 * (@sc0ttkclark)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/filtering-pods-1/#post-3491676)
 * Pods find() handles filtering automatically, correct. Upon submission, all relationship
   fields will be searched when find() builds it’s query. If that’s not what happens,
   please submit a bug report on our GitHub so we can look into it at [http://pods.io/submit/](http://pods.io/submit/)

Viewing 1 replies (of 1 total)

The topic ‘Filtering pods’ is closed to new replies.

 * ![](https://ps.w.org/pods/assets/icon.svg?rev=3286397)
 * [Pods - Custom Content Types and Fields](https://wordpress.org/plugins/pods/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pods/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pods/)
 * [Active Topics](https://wordpress.org/support/plugin/pods/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pods/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pods/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [Scott Kingsley Clark](https://wordpress.org/support/users/sc0ttkclark/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/filtering-pods-1/#post-3491676)
 * Status: resolved