implement Patrick's color code of post types