Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $county_arr = array(
- 'key' => '_ct_multiselectbox_4e4980ea9dbd9',
- 'value' => array('Cork', 'Dublin'),
- 'compare' => 'IN',
- 'type' => 'CHAR'
- );
- $photography_arr = array(
- 'key' => '_ct_multiselectbox_4e46766e7ada0',
- 'value' =>array('Reportage', 'Traditional'),
- 'compare' => 'IN',
- 'type' => 'CHAR'
- );
- //not sure why this doesn't work for me, 'wdl_supplier_type' => 'wedding_photographers' does work.
- //$supplier_type = array(
- // 'taxonomy' => 'wdl_supplier_type',
- // 'field' => 'slug',
- // 'terms' => 'wedding_photographers'
- // );
- $args = array(
- 'post_type' => 'wdl',
- //if i remove the meta_query, the query works as expected, with meta_query I get no results.
- 'meta_query' => array($county_arr,$photography_arr),
- 'wdl_supplier_type' => 'wedding_photographers'
- // 'tax_query' => $supplier_type
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement