Title: Double filter
Last modified: November 24, 2018

---

# Double filter

 *  Resolved [stewiek](https://wordpress.org/support/users/stewiek/)
 * (@stewiek)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/double-filter/)
 * Hi,
 * am trying to count the number of shirts ordered and also filter the paid ones.
 * the shortcode i did was this:
 * [gravitywp_count formid=’21’ filter_field=”payment_status” filter_value=”Paid”
   filter_field=”20″ filter_value=”XL”]
 * but it ended up showing the total XL and not the paid ones. Where did i go wrong?

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

 *  Plugin Author [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * (@gravitywp)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/double-filter/#post-10912485)
 * Please check the documentation, you’ll find quickly what you do wrong…
 *  Thread Starter [stewiek](https://wordpress.org/support/users/stewiek/)
 * (@stewiek)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/double-filter/#post-10912927)
 * thank you for the prompt response.
 * the only documentation i found is on the plugin page which is the description
   
   [https://wordpress.org/plugins/gravitywp-count/#description](https://wordpress.org/plugins/gravitywp-count/#description)
 * Were you referring to those?
 *  Plugin Author [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * (@gravitywp)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/double-filter/#post-10913122)
 * Hi Stewiek,
 * Try in the FAQ: [How to filter…](https://wordpress.org/plugins/gravitywp-count/#how%20do%20i%20use%20values%20to%20filter%20the%20results%3F)
 * Good luck!
 *  Thread Starter [stewiek](https://wordpress.org/support/users/stewiek/)
 * (@stewiek)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/double-filter/#post-10913732)
 * So sorry, i just couldn’t figure this out no matter what I try.
 * I break apart the 2 filters and it works well.
 * [gravitywp_count formid=”21″ filter_field=”payment_status” filter_value=”Paid”]
   
   Result: 20 (correct)
 * [gravitywp_count formid=”21″ filter_field=”20″ filter_value=”XL”]
    Result: 2 (
   correct, but not what i wanted, it adds both paid and unpaid status)
 * [gravitywp_count formid=”21″ filter_field=”payment_status” filter_value=”Paid”
   filter_field=”20″ filter_value=”XL”]
    result: 20
 * I checked and I used the value instead instead of label for the filter_value.
 * Can you guide me? hope can point out my mistake.
 *  Plugin Author [GravityWP](https://wordpress.org/support/users/gravitywp/)
 * (@gravitywp)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/double-filter/#post-10913972)
 * Hi Stewiek,
 * Did you go to the link I provided and read the part under “With 2 filters”?
 * It’s quite easy to point out that you do wrong, but since it’s your responsibility
   to first read the documentation, I would like you to find it yourself.
 *  Thread Starter [stewiek](https://wordpress.org/support/users/stewiek/)
 * (@stewiek)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/double-filter/#post-10914649)
 * i shall try again.
    thank you for the prompt response.

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

The topic ‘Double filter’ 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/)

 * 6 replies
 * 2 participants
 * Last reply from: [stewiek](https://wordpress.org/support/users/stewiek/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/double-filter/#post-10914649)
 * Status: resolved