Support » Plugin: GravityWP - Count » Double filter

  • Resolved stewiek



    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


    Please check the documentation, you’ll find quickly what you do wrong…

    thank you for the prompt response.

    the only documentation i found is on the plugin page which is the description

    Were you referring to those?

    Plugin Author GravityWP


    Hi Stewiek,

    Try in the FAQ: How to filter…

    Good luck!

    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


    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.

    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.