How to filter WooCommerce products by custom attribute

前端 未结 5 1344
-上瘾入骨i
-上瘾入骨i 2020-12-08 05:04

I\'m trying to filter WooCommerce product archive by custom attributes.

For example, there are 5 products with attribute \"color\" containing \"red\", and another 3

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 05:32

    A plugin is probably your best option. Look in the wordpress plugins directory or google to see if you can find one. I found the one below and that seemed to work perfect.

    https://wordpress.org/plugins/woocommerce-products-filter/

    This one seems to do exactly what you are after

提交回复
热议问题