So you shall move to Discourse and drop WordPress? Then the fastest and the most reliable way is plain old copy&paste — and not only because your in-site linking structure will break totally.
But if you are trying to do something else, then you should take a look this: