Added code to get the blog posts