Title: Undefined array key
Last modified: November 8, 2023

---

# Undefined array key

 *  Resolved [testwp99](https://wordpress.org/support/users/testwp99/)
 * (@testwp99)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-38/)
 * Hello, I have a color filter on the site [https://prnt.sc/TcKSKD1vqyFH](https://prnt.sc/TcKSKD1vqyFH),
   it a taxonomy Colors. But when I select a color or another filter I have a warning
   and color filter doesn’t show.
 * For example: [https://bravo-textile.com.ua/store/swoof/colors-bezhevyj/](https://bravo-textile.com.ua/store/swoof/colors-bezhevyj/)
 * [https://prnt.sc/vEpvZv_m–J8](https://prnt.sc/vEpvZv_m–J8)
 * **Warning**: Undefined array key “colors” in**/home/admin/web/bravo-textile.com.
   ua/public_html/wp-content/plugins/woocommerce-products-filter/views/woof.php**
   on line**674**
 * **Warning**: Undefined array key “colors” in**/home/admin/web/bravo-textile.com.
   ua/public_html/wp-content/plugins/woocommerce-products-filter/views/woof.php**
   on line**139**
 * **Warning**: Undefined array key “colors” in**/home/admin/web/bravo-textile.com.
   ua/public_html/wp-content/plugins/woocommerce-products-filter/views/woof.php**
   on line**142**
 * **Warning**: Undefined array key “colors” in**/home/admin/web/bravo-textile.com.
   ua/public_html/wp-content/plugins/woocommerce-products-filter/views/woof.php**
   on line**154**
 * Thank you!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fundefined-array-key-38%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-38/#post-17183890)
 * Hello
 * What do you use to create this custom taxonomy?
 *  Thread Starter [testwp99](https://wordpress.org/support/users/testwp99/)
 * (@testwp99)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-38/#post-17184005)
 * I created it through the code in functions.php register_taxonomy( ‘colors’, ‘
   product’, $args );
 * And the plugin sees it at the shop page. It shows all categories in filter, but
   after select it doesn’t show.
 * Thank you!
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-38/#post-17191068)
 * Hello
 * Please try to create custom taxonomy with this plugin – [https://wordpress.org/plugins/custom-post-type-ui/](https://wordpress.org/plugins/custom-post-type-ui/)
 *  Thread Starter [testwp99](https://wordpress.org/support/users/testwp99/)
 * (@testwp99)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-38/#post-17191263)
 * I don’t want to use a plugin for custom taxonomy if I can create it via function.
 * Just please tell me how to solve the ploblem I have.
 * Thank you!
 *  Plugin Support [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * (@mediawebster)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-38/#post-17196918)
 * Hello
 * OK! In this case, you should register your custom taxonomy correctly
 * try using another hook (execution earlier) to register the taxonomy

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

The topic ‘Undefined array key’ 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/)

 * 5 replies
 * 2 participants
 * Last reply from: [mediawebster](https://wordpress.org/support/users/mediawebster/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/undefined-array-key-38/#post-17196918)
 * Status: resolved