We have a static Hugo website and we want to migrate it to WordPress

You can use the postmark extension for wp-cli to create posts from markdown files with quite a bit of control over how you deal with your frontmatter.