Func to convert cmd line post id to read id.
Function that returns posts grouped by months.