added pagination for posts via paged plugin