An extension of the official WordPress plugin for Discourse

Yes, with the approach I was suggesting the user would first have to click a link or button that triggered the topic to be published, then click the link to the topic after it had been created. I was trying to think of ways of reducing the complexity of the feature. Maybe an automatic redirect would not make things much more complex though.

Another thing to consider is that the user who triggers publishing the topic may or may not be logged into Discourse. Unless the WordPress site is the SSO provider for Discourse, I don’t think there’s a way to automatically authenticate the user, then redirect them to the new topic. The exception to this is if the topic is in a category that can’t be accessed by anonymous users. In that case, Discourse would automatically redirect an unauthenticated user to the login page, then back to the topic they were trying to access.

I don’t know. It might be worth following up on this:

2 Likes