fixed code formatting for index.php new post method to get post by id for postpage.php