Hi in my post\\u type=shop我有2个元键和值数组
自定义字段
Name Values
cu_status pending,processing,completed
cu_date 12-Jan-2016 , 13-Jan-2016, ...... any date in the same format date("d-M-Y")
现在,我需要遍历cu\\u状态为待定、正在处理且cu\\u日期在2016年1月12日至2016年4月13日之间的所有帖子,查询内容是什么?我很困惑。要获取所有状态为挂起的帖子,请处理我知道的查询
$args = array(
\'post_type\' => \'shop\',
\'post_status\' => \'publish\',
\'meta_query\' => array(
array(
\'key\' => \'cu_status\',
\'value\' => array(\'pending\',\'processing\'),
\'compare\' => \'IN\',
)
),
\'posts_per_page\' => -1
);
请帮助完成查询。