Reformatting posts to add css classes