Get a custom field of all posts on current blog page

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; ?>

THE LOOP

File not found.