Integrated Discourse with Wordpress but the URL to 'continue the discussion' doesn't work

Look at the custom fields for the post. What is the value for discourse_permalink? Also try disabling SSO.

(Relevant plugin file.)