一个WP循环在wordpress主题的发展,我们可以用single.php中显示特定的单篇文章。 为了这个目的,通常的做法是为什么我需要在single.php中
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php the content();?>
<?php endwhile; ?>
<?php endif; ?>
为什么我需要循环显示一个帖子?任何人都可以给出一些有效的理由吗
请参阅https://wordpress.stackexchange.com/questions/198704/should-i-use-loop-in-the-single-php-file –