Added paginate to posts