cleanup readability

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