put prev post name in the pagination but not outputting correctly. need to fix