Advertisement
MikkoDC

darcey events

Jun 6th, 2024
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1.  
  2.  
  3. // Set Custom Tax Query
  4. $taxquery = array(
  5. 'relation' => 'OR',
  6. array(
  7. 'taxonomy' => 'wedding-season',
  8. 'field' => 'slug',
  9. 'terms' => array('summer'),
  10. 'operator' => "NOT IN"
  11. ),
  12. array(
  13. 'taxonomy' => 'color-palette',
  14. 'field' => 'id',
  15. 'terms' => array(123),
  16. 'operator' => "IN"
  17. ),
  18. array(
  19. 'taxonomy' => 'venue',
  20. 'field' => 'id',
  21. 'terms' => array(126),
  22. 'operator' => "IN"
  23. ),
  24. array(
  25. 'taxonomy' => 'table-setting',
  26. 'field' => 'id',
  27. 'terms' => array(129),
  28. 'operator' => "IN"
  29. ),
  30. array(
  31. 'taxonomy' => 'table-setting',
  32. 'field' => 'id',
  33. 'terms' => array(129),
  34. 'operator' => "IN"
  35. ),
  36. );
  37. $query_args['tax_query'] = $taxquery;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement