I have a blog on my site and want to put the recent posts on the homepage. When I grab the code for the recent posts from the blog sidebar section and copy it to my index.php homepage I get error messages.