refactored to use loop.php and support post formats in the future