如何显示从今天到将来的帖子列表?我实际使用的代码是:
<div id="news-loop">
<?php if (have_posts()) : ?>
<?php query_posts(\'cat=4&showposts=6&orderby=date&order=DESC&post_status=future&post_status=published\'); while (have_posts()) : the_post(); ?>
<p><?php the_time(\'j F, Y\') ?></p>
<p><a href="<?php the_permalink() ?>" ><?php the_title(); ?></a></p>
</div>
<?php endwhile; ?>
<?php else : ?>
<?php endif; ?>
这正确显示了该类别的所有帖子和未来帖子。另一个问题是:由于我使用的是“post\\u status=future&;post\\u status=published”,因此我必须丢弃旧帖子,以避免它们被显示。
谢谢你的帮助!