Fixed bug with if statement, and importing new post.