added method to get all the posts dates grouped by month and year