# 2 questions about WP Discourse

**URL:** <https://meta.discourse.org/t/2-questions-about-wp-discourse/75866>\
**Category:** WordPress\
**Created:** [12. Dezember 2017 um 12:11 UTC](https://meta.discourse.org/t/2-questions-about-wp-discourse/75866 "2017-12-12T12:11:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [13. Dezember 2017 um 17:26 UTC](https://meta.discourse.org/t/2-questions-about-wp-discourse/75866/5 "2017-12-13T17:26:58Z")

</div>

> [@hanks](#):
>
> Is there any way to make an SSO link redirect to an URL with an anchor? I’m using Wordpress as a SSO client.

In my development environment, this works if I do not urlencode the `redirect_to` parameter. Whether or not this works may depend on your WordPress site’s server configuration.

> [@hanks](#):
>
> is it possible to automatically log in Wordpress when logging in Discourse?

It’s theoretically possible, but would require a Discourse plugin. I’m not sure that it would be worth the trouble. Adding a WordPress SSO login link to your forum should take care of most cases.

If you want to automatically create WordPress users when they are created on Discourse, a Discourse plugin could be written that posts to the WordPress REST API users/ route.

---

_[View the full topic](https://meta.discourse.org/t/2-questions-about-wp-discourse/75866)._
