have_post()  correct writting

fine and correct the error