You could just rewind the query to loop through again:
<?php rewind_posts(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<p>Post Number: <?php the_ID(); ?></p>
<?php endwhile; ?>
You could just rewind the query to loop through again:
<?php rewind_posts(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<p>Post Number: <?php the_ID(); ?></p>
<?php endwhile; ?>