Fix bug where every place the_title could get overwritten. Only use when in_the_loop().