Title: Filter Syntax
Last modified: August 22, 2016

---

# Filter Syntax

 *  Resolved [gld](https://wordpress.org/support/users/gld/)
 * (@gld)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/filter-syntax/)
 * Hi Roland, I’m having trouble with shortcode operands in the filter. My syntax
   is as follows:
 * [pdb_list template=”directory” filter=”record_status=Active or record_status=
   Non-Member” fields=”first_name,last_name,list_phone,phone,list_email,email,spouse_first_name,
   spouse_last_name,spouse_email,street” orderby=”last_name” sort=”true” order=”
   asc” search=”true”]
 * I want all records that have a value for record_status of ‘Active’ or of ‘Non-
   Member’
 * [https://wordpress.org/plugins/participants-database/](https://wordpress.org/plugins/participants-database/)

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

 *  Thread Starter [gld](https://wordpress.org/support/users/gld/)
 * (@gld)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/filter-syntax/#post-5725632)
 * with the syntax (above) I end up seeing all records (i.e. I assume the filter
   is failing or the syntax is incorrect. Can you advise what I should be doing?
 * Thanks
    Greg
 *  Plugin Author [Roland Barker](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/filter-syntax/#post-5725730)
 * You should use a “pipe” | instead of “or” to join your statements.
 * Take a look at the “[Other Notes](https://wordpress.org/plugins/participants-database/other_notes/)”
   page under “Filtering which Records Get Shown with the List Shortcode” for the
   details.
 *  Thread Starter [gld](https://wordpress.org/support/users/gld/)
 * (@gld)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/filter-syntax/#post-5725769)
 * Dah. I also tried 2 pipes and was searching for the details but there it is in
   Other Notes. Thanks Roland!

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

The topic ‘Filter Syntax’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [gld](https://wordpress.org/support/users/gld/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/filter-syntax/#post-5725769)
 * Status: resolved