You are missing an endif; that probably should go just before the endwhile;, like this:
<?php endif; ?>
<?php endif; ?>
<?php endwhile; // End the loop. Whew. ?>
You are missing an endif; that probably should go just before the endwhile;, like this:
<?php endif; ?>
<?php endif; ?>
<?php endwhile; // End the loop. Whew. ?>