我使用以下查询在主页上只发布了一篇特定类别的帖子:
<?php if ( have_posts() ) : ?>
<?php query_posts(\'posts_per_page=1&orderby=date&order=DESC&cat=6\'); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php wpe_excerpt(\'wpe_excerptlength_index\', \'wpe_excerptmore\'); ?>
<?php endwhile; endif; ?>
每个帖子都有两个自定义字段,其中包含开始日期和结束日期。我需要的是,在结束日期之后,将显示下一个帖子(开始日期如下的帖子)。但我不知道怎么做。有什么提示吗?