added create post function with item attributes