Some readability cleanup

I propose quotes around post_type value. Cleaned up the if / while loop.