Filter product with attributes

Question

I have this code and I need to filter products woocommerce by attributes Zona.

This is my code:

$wp_query->query('&post_type=product&posts_per_page=10&product_cat=affitti&posts_per_page=10&paged='.$paged.'&tax_query=array(array(taxonomy=pa_zona&field=slug&terms=array(roma)))');

My attributes is Zona and field into Zona is roma.

0
, , , , SEO Expert 1 year 2020-07-24T04:10:59-05:00 0 Answers 53 views 0

Leave an answer

Browse
Browse