Added snippet to work out the next posts filename