level 1
天外左翼
楼主
我用的是这个调用
<ul>
<?php query_posts('cat=1&showposts=5'); //cat是要调用的分类ID,showposts是需要显示的文章数量 ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
<?php the_time('Y-m-d'); ?>
</li>
<?php endwhile; wp_reset_query(); ?>
</ul>
如何实现 超过post_date这个时间3小时 不显示该内容,但是还在数据库里!可以有偿。。私信我
2021年03月20日 17点03分
1
<ul>
<?php query_posts('cat=1&showposts=5'); //cat是要调用的分类ID,showposts是需要显示的文章数量 ?>
<?php while (have_posts()) : the_post(); ?>
<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
<?php the_time('Y-m-d'); ?>
</li>
<?php endwhile; wp_reset_query(); ?>
</ul>
如何实现 超过post_date这个时间3小时 不显示该内容,但是还在数据库里!可以有偿。。私信我