Change name of get_blog_posts to get_posts, and fixed template problems