add title function so the title of a post always shows up