【发布时间】:2017-08-31 18:59:59
【问题描述】:
如何让它在两个整数之间进行过滤?
这是我的 PHP
$filter = array(
'post_type' => 'request',
'post_status' => 'publish',
'posts_per_page' => -1,
'meta_query' => array(
'key' => 'first_posting_date',
'value' => array('20170826','20170829'), //already tried to remove the qoutes on numbers
'compare' => 'BETWEEN'
)
);
$posts = new WP_Query($filter);
print_r($posts);
print_r 的结果显示了过滤后的两个整数的外部。我哪里出错了?
【问题讨论】: