什么是在循环中只显示2个帖子的最佳方式?
<?php $i = 1; while (have_posts()): if ($i == 3) { break; } the_post(); $i++; endwhile; ?>
有更"美丽"的东西吗?
php wordpress
php ×1
wordpress ×1