Looping through the posts and outputting HTML, end of part 4