View All Posts in Category Externally (4 posts)

I want to view all the posts in a category on an external page in the same domain. I figured it out but I get an error message on the page that is displaying the content. How do I get rid of this error message. I am not too familiar with php but I am trying. Here is the code at the beginning of my page: