limit to months rather than by number of posts

If I understand correctly you want to display all month of June on one page? This would require overiding the global $per_page setting it to a high number and also you would need to filter pre_get_posts and adjust the SQL query string to return results by date. The post you linked has the answer. Perhaps displaying your code will allow us to see a problem.