Title: Attribute Filter Not Working
Last modified: July 13, 2022

---

# Attribute Filter Not Working

 *  Resolved [tdaholdings2022](https://wordpress.org/support/users/tdaholdings2022/)
 * (@tdaholdings2022)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/attribute-filter-not-working-5/)
 * We are using an attribute called Features in which multiple values may be selected
   for a given product. We have used AAPF successfully for over a year on attributes
   that only used one value. I am trying to figure out how to make it work when 
   an attribute has more than one value.
 * In the example cited, the attribute uses two values – Kit Contents, and Grounding
   Style. We could use two separate attributes, but I felt it would be more streamlined
   to combine these values in one attribute called Features.
 * The attribute values display correctly in the widget, but when an item is selected
   nothing happens. The other attribute filters work fine.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fattribute-filter-not-working-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Dmytro Holovnia](https://wordpress.org/support/users/dholovnia/)
 * (@dholovnia)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/attribute-filter-not-working-5/#post-15825007)
 * Hi,
 * [https://www.boundlessoutfitters.com/product-category/marine-alternators/balmar-6-series-marine-alternators/?filters=features%5B306-307%5D](https://www.boundlessoutfitters.com/product-category/marine-alternators/balmar-6-series-marine-alternators/?filters=features%5B306-307%5D)
 * Page with filters has error `Warning: in_array() expects parameter 2 to be array,
   null given in /home/customer/www/boundlessoutfitters.com/public_html/wp-content/
   themes/storefront-child/functions.php on line 6`. I suppose you have some custom
   code that can influence the filters.
 * Regards,
    Dmytro
 *  Thread Starter [tdaholdings2022](https://wordpress.org/support/users/tdaholdings2022/)
 * (@tdaholdings2022)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/attribute-filter-not-working-5/#post-15828692)
 * The custom code in functions.php was added to prevent two product categories 
   from displaying on the storefront. One of the hidden categories is “uncategorized”.
   However, the code I copied and pasted must have been written by someone familiar
   with “The Queen’s” English as opposed to American, because the spelling in the
   added code was “uncategorised”. I corrected the spelling to match the category
   name, and everything works now.
 * Thank you very much!
    Regards, Tim

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

The topic ‘Attribute Filter Not Working’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce-ajax-filters/assets/icon-256x256.gif?rev=2770304)
 * [Advanced AJAX Product Filters](https://wordpress.org/plugins/woocommerce-ajax-filters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce-ajax-filters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce-ajax-filters/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce-ajax-filters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce-ajax-filters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce-ajax-filters/reviews/)

## Tags

 * [attributes](https://wordpress.org/support/topic-tag/attributes/)
 * [multiple](https://wordpress.org/support/topic-tag/multiple/)
 * [values](https://wordpress.org/support/topic-tag/values/)

 * 2 replies
 * 2 participants
 * Last reply from: [tdaholdings2022](https://wordpress.org/support/users/tdaholdings2022/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/attribute-filter-not-working-5/#post-15828692)
 * Status: resolved