Output and format post list correctly