Is including the loop necessary for page.php? [duplicate]

Including Loop is not necessary, but recommended. Also, if you want to use some features you need the loop, for example:

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; endif; ?>

Leave a Comment