Interviewing as a Human Resources professional and knowing the process, it's very disappointing to be ghosted and only after repeated emails being told the company is "going in a different direction" after seeing the job re-posted. After being told that this role was very important and urgently needed only to be benched is unprofessional. Please do better in your hiring processes and you will see better results. If a candidate is not a good fit, be transparent enough to just let them know so that they are not spinning their wheels waiting to hear back.