Advertisement
Guest User

Untitled

a guest
Aug 17th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. $county_arr = array(
  2. 'key' => '_ct_multiselectbox_4e4980ea9dbd9',
  3. 'value' => array('Cork', 'Dublin'),
  4. 'compare' => 'IN',
  5. 'type' => 'CHAR'
  6. );
  7. $photography_arr = array(
  8. 'key' => '_ct_multiselectbox_4e46766e7ada0',
  9. 'value' =>array('Reportage', 'Traditional'),
  10. 'compare' => 'IN',
  11. 'type' => 'CHAR'
  12. );
  13.  
  14. //not sure why this doesn't work for me, 'wdl_supplier_type' => 'wedding_photographers' does work.
  15. //$supplier_type = array(
  16. // 'taxonomy' => 'wdl_supplier_type',
  17. // 'field' => 'slug',
  18. // 'terms' => 'wedding_photographers'
  19. // );
  20.  
  21. $args = array(
  22. 'post_type' => 'wdl',
  23. //if i remove the meta_query, the query works as expected, with meta_query I get no results.
  24. 'meta_query' => array($county_arr,$photography_arr),
  25. 'wdl_supplier_type' => 'wedding_photographers'
  26.  
  27. // 'tax_query' => $supplier_type
  28. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement