A user, bobdude, reports an issue where posts cannot be published to Discourse from WordPress, receiving an error about the Discourse Username not being set correctly. simon advises checking the Discourse Username field in the WordPress profile, noting it’s located in the Contact Info section. bobdude replies that the field is missing. simon suggests checking if the ‘Do Not Display Discourse Name Field’ option is enabled in the plugin’s settings, which would hide the field. bobdude confirms that disabling this option resolved the issue.
Error: Your post could not be published to Discourse. Check that your Discourse Username is set correctly on your WordPress profile page.
I have Just installed(1 week ago) and enabled SSO with WP as the provider. The sso is working but I get this error when trying to publish to Discourse. I’m not forcing the usernames to change to the WP username. However I have made sure they match on the writing account.
Can you double check the value of the Discourse Username field on your WordPress user profile page? It is in the profile page’s Contact Info section. The Discourse Username needs to exactly match your username on Discourse. Let me know if this doesn’t solve the problem.
Can you check if you have enabled the WP Discourse ‘Do Not Display Discourse Name Field’ option? It is found on the plugin’s Publishing tab. If this setting is enabled, could you try disabling it? That should let you see the value of the Discourse Username on their profile page.
If you have not enabled that setting, and are still not seeing the Discourse Username field, it is quite likely a conflict with another plugin. I can take a look at that.