元のクエリ配列を引数配列に統合することもできます。
複数のカスタムフィールドを条件にするときに役に立ちます。
$search_plan_array=array('key'=>' プラン',
'value'=> $_REQUEST["works_search_plan"],
'compare'=>'IN'
);
$search_type_array=array('key'=>' 業種',
'value'=> $_REQUEST["works_search_type"],
'compare'=>'IN'
);
$search_condition_array['meta_query']=array($search_plan_array,$search_type_array);
global $wp_query;
$args = array_merge( $wp_query->query, $search_condition_array);
query_posts( $args );