Product loop by attribute value
-
I searching a lot, but all i found not working
i need loop by my product attribute value, but$args = array(
‘post_type’ => ‘product’,
‘meta_query’ => array(
array(
‘key’ => ‘pa_prod_cat’, //without pa_ not working too
‘value’ => ‘kresla’,
‘compare’ => ‘=’,
),
),
);
$loop = new WP_Query( $args );not working.
this snippet
https://snippet.fm/snippets/query-woocommerce-products-product-specific-custom-attribute/
not working too..
What I’m doing wrong?
Please help me
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Product loop by attribute value’ is closed to new replies.