Clean up code in basic loop to reflect WP theming standards