我有此代码调用自定义post事件列表。它按正确的顺序调用它们,但当事件传递时,它仍然显示事件。你知道代码有什么问题吗?
$args2 = array(
"post_type" => "gig",
"meta_key" => "_gigswhen", // Change to the meta key you want to sort by
"meta_query" => array(
array(
"meta_key" => "_gigswhen",
"value" => date(),
"compare" => ">=",
),
),
"orderby" => "meta_value_num", // This stays as \'meta_value\' or \'meta_value_num\' (str sorting or numeric sorting)
"order" => "ASC"
);
“\\u gigswhen”中的日期存储为strotime(unix时间码)