Title: 0 Values ignored.
Last modified: October 6, 2021

---

# 0 Values ignored.

 *  Resolved [nickdill](https://wordpress.org/support/users/nickdill/)
 * (@nickdill)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/)
 * We have values stored in meta fields that are numbers starting from 0. When attempting
   to filter on the 0 it appeared to not work. I tried numerous setting changes.
   I also have a taxonomy with 0 value and it experienced the same issue. When I
   changed the slug from 0 to zero, the filter began working as expected. Unfortunately,
   I cannot change the value of the meta field, it needs to stay 0. It appears this
   is a bug with the plugin as it effects the meta filter extension as well as regular
   taxonomy.

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

 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14951587)
 * Hello
 * What type of meta filter are you using?
 *  Thread Starter [nickdill](https://wordpress.org/support/users/nickdill/)
 * (@nickdill)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14951642)
 * Thank you for the support.
 * I’m not too sure what you mean. One of the meta fields is labeled “meta:_stock_at_139”
   when I export it. The meta fields I am trying to use are stock numbers for different
   locations. I currently have it set to checkbox > number in the meta data tab 
   of the woof settings. On the structure tab search option is set to value exists
   and the search value is set to 0.
 * I have tried many different combinations of options. Including drop down and 
   listing the values manually. When I listed them manually, 0 would not show up
   but all the other numbers would. If I set it to search by text, I can search 
   for values (like 32 or 12) but I cannot search for 0. I even tried filtering 
   by 0 on a taxonomy but it would not work if the taxonomy slug was also 0.
    -  This reply was modified 4 years, 9 months ago by [nickdill](https://wordpress.org/support/users/nickdill/).
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14957794)
 * Hello
 * I mean: drop-down, checkbox … etc
 * Try to use drop-down
 * In file -\wp-content\plugins\woocommerce-products-filter\ext\meta_filter\html_types\
   select\index.php
 * Delete this code – [https://c2n.me/4dCoYvn.png](https://c2n.me/4dCoYvn.png)
 * and do a test
 *  Thread Starter [nickdill](https://wordpress.org/support/users/nickdill/)
 * (@nickdill)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14962534)
 * Hello,
 * I tried drop down as number and drop down as string. I removed the code you suggested
   and nothing changed. If I list the values “-1,0,1,2,3,4” the 0 does not show 
   up in the drop down.
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14965464)
 * Hello
 * Try in file -\wp-content\plugins\woocommerce-products-filter\ext\meta_filter\
   html_types\select\views\woof.php delete thid s code – [https://c2n.me/4dDSRab.png](https://c2n.me/4dDSRab.png)
 *  Thread Starter [nickdill](https://wordpress.org/support/users/nickdill/)
 * (@nickdill)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14971670)
 * When I deleted the code you referenced in -\wp-content\plugins\woocommerce-products-
   filter\ext\meta_filter\html_types\select\views\woof.php, I could see the 0 values
   as drop down options in the front end. When I click on the 0, it puts the slug
   in the URL too but the results are still as if I didn’t click anything. So that
   fixed the selection in the frontend and added it to the URL but it still does
   not show correct filter results.
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14973689)
 * Hello
 * You left this code – [https://share.stackovergo.com/image/i20211015162447.png](https://share.stackovergo.com/image/i20211015162447.png)
 *  Thread Starter [nickdill](https://wordpress.org/support/users/nickdill/)
 * (@nickdill)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14973971)
 * I tried leaving that code and removing that code in combination with removing
   the code from `\wp-content\plugins\woocommerce-products-filter\ext\meta_filter\
   html_types\select\views\woof.php`. Nothing gives proper results but when I remove
   that if statement with the continue line from the woof.php file, the 0 option
   at least shows up as an option. When I select the 0 value the results are still
   not accurate.
 * I went ahead and looked at the line from the index.php file you referenced and
   changed the the `if($curr_text){` to `if($curr_text || $curr_text === '0'){` 
   and it began working as intended. So changing that if statement and removing 
   the `continue;` from the woof.php file fixed the issue. The drop down is working
   but I really need to use checkbox instead. What changes would need to be applied
   to get this working with checkbox?
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14980312)
 * Hello
 * checkbox will only work for one value. And use this option – [https://share.stackovergo.com/image/i20211018145940.png](https://share.stackovergo.com/image/i20211018145940.png)

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

The topic ‘0 Values ignored.’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-products-filter/assets/icon-256x256.png?rev=
   2844301)
 * [HUSKY - Products Filter Professional for WooCommerce](https://wordpress.org/plugins/woocommerce-products-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-products-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-products-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-products-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-products-filter/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/0-values-ignored/#post-14980312)
 * Status: resolved