the_post() calls should be preceded by have_posts() checks
closes #54