formatSummaryPost() function