added the code to create-post.php