Title: Filter operator
Last modified: June 24, 2022

---

# Filter operator

 *  Resolved [imoorey](https://wordpress.org/support/users/imoorey/)
 * (@imoorey)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/filter-operator/)
 * Hi Erik,
 * I can see the following filter operators: ‘isnot’, ‘not_equal’, ‘greater_than’,‘
   less_than’, ‘contains’, ‘starts_with’, ‘ends_with’ but there is an operator for“
   does not contain” ?
 * Case use: I would like to generate a list of users that has not selected one 
   of the options in the checkbox, rather what has been selected.
    -  This topic was modified 3 years, 9 months ago by [imoorey](https://wordpress.org/support/users/imoorey/).

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

 *  Plugin Author [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * (@gravitywp)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/filter-operator/#post-15767229)
 * Hi [@imoorey](https://wordpress.org/support/users/imoorey/)
 * Could you explain a little bit more what you want to achieve (with an example
   or a link)?
 * You can use ‘isnot’ to get a number of all the users that didn’t select a certain
   value and use multiple ‘isnot’ filters to specify that.
 * Kind regards,
    Erik
 *  Thread Starter [imoorey](https://wordpress.org/support/users/imoorey/)
 * (@imoorey)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/filter-operator/#post-15767739)
 * Hi Erik,
 * I would like to count the number of documents that has not been approved (with
   GravityView) and has not been voided. One of the checkbox (field id 83) options
   is “Voided”. Both label and value are the same.
 * This is what I’m using:
 * `[gravitywp_count formid='75' is_approved='no' filter_operator='isnot' filter_field
   ='83' field_value='Voided']`
 * Expecting: 4
    Current result is: 41 (as count includes 37 voided documents)
 * Thanks in advance!
    Moorey
    -  This reply was modified 3 years, 9 months ago by [imoorey](https://wordpress.org/support/users/imoorey/).
 *  Plugin Author [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * (@gravitywp)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/filter-operator/#post-15773115)
 * The problem, most likely, is that the checkboxes values are stored as an array.
   That’s probably why you were asking for an does_not_contain operator. This operator
   is not supported unfortunately, but you should be able to target the individual
   check by using filter_field=’83.1′.
    Hope this helps!

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

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

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

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/filter-operator/#post-15773115)
 * Status: resolved