Added (first buggy version of) method setPostsPerPage.