wc_get_products QUERY
-
Hi,
I am trying to use the operator AND in wc_get_products like so:
$products = wc_get_products(array( 'limit' => 4, // All products 'status' => 'publish', 'category' => array( 'category1', 'category2' ,'category3'), 'operator' => 'AND' ) );
it doesn’t seem to work at all as it retrieves products from all 3 categories.
any way to fix that?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘wc_get_products QUERY’ is closed to new replies.