update new post's sample code