paginate on array rather than Post object

Doesn't seem to like paginating the result of searches