added code to posts.php for title and posts