Added a for loop to loop through all the blog post, get the title for each one, converted the special characters etc.