【发布时间】:2016-07-22 04:57:07
【问题描述】:
我有一个自定义帖子类型和一个自定义字段:expired_date。
我想显示帖子没有过期,所以基本上我想检查如果expired_date > current_date,帖子会显示。
如何执行这个 WordPress 循环查询?
<?php
$args = array(
'post_type' => 'job_listing'
);
query_posts($args);
?>
<?php while (have_posts()) : the_post(); ?>
你能帮我在自定义帖子查询中检查吗?
【问题讨论】:
-
更正 Wordpress 拼写!!
标签: wordpress custom-post-type