question about hasterm
-
I would like a “has_term” query to look for two values in a OR statement.
how would you construct this
$orders = array(); foreach ($query->posts as $p) { if (!has_term('completed', 'shop_order_status', $p)) { continue; }
to search for both completed and processing orders?
thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘question about hasterm’ is closed to new replies.