I've set up the following loop on a page, but it is missing out the first post. Does anyone know why this might be?
<div class="gallery">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="gallery-item">
<a href="<?php esc_url( the_permalink() ); ?>">
<?php the_post_thumbnail('thumbnail'); ?>
<div class="view-item">
<span>
<h2><?php the_title(); ?></h2>
<p>View project</p>
</span>
</div>
</a>
</div>
<?php endwhile; ?>
</div>
<?php bones_page_navi(); ?>
<?php endif; ?>
</div>