Hack for next post

Not really very happy with this solution, but the previous solution would just pull up the same blog post given to the function. I was going to merge this straight away, but there must be a better way to do it. Any ideas?