# How to create a 'follow' button for a topic and post it on an external website?

**URL:** https://meta.discourse.org/t/how-to-create-a-follow-button-for-a-topic-and-post-it-on-an-external-website/91266
**Category:** WordPress
**Created:** [6월 30, 2018, 2:17오후 UTC](https://meta.discourse.org/t/how-to-create-a-follow-button-for-a-topic-and-post-it-on-an-external-website/91266 "2018-06-30T14:17:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [6월 30, 2018, 2:17오후 UTC](https://meta.discourse.org/t/how-to-create-a-follow-button-for-a-topic-and-post-it-on-an-external-website/91266/1 "2018-06-30T14:17:25Z")

</div>

The Wordpress Sycn plugin gives the ability to auto post your WP articles to a thread in our discourse forum.

Is it possible to put a ‘follow’ button into my wordpress articles which subscribes my users to that topic? (or redirects them to the login page if they aren’t logged in)

Essentially creating a notification of new articles posted if users click the button, Wordpress is terrible for that on its own.

Thanks

---

<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: [6월 30, 2018, 3:40오후 UTC](https://meta.discourse.org/t/how-to-create-a-follow-button-for-a-topic-and-post-it-on-an-external-website/91266/2 "2018-06-30T15:40:01Z")

</div>

You can set a user’s notification level for a topic through the API. You’ll need to generate an API key for the user first, and then make a POST request to `/t/$topic_id/notifications` with the user’s `api_key`, `api_username`, and the `notification_level` in the body of the request. To avoid exposing the API key, the request will have to be made from the server, not the client.

> [@Andy02](#):
>
> (or redirects them to the login page if they aren’t logged in)

The easiest way to deal with this would be to only show the Follow button to logged in users.

---

<div class="post-metadata">

### Author: ![Andy02](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/andy02/32/119498_2.png) [@Andy02](https://meta.discourse.org/u/Andy02)
#### Post date: [6월 30, 2018, 4:02오후 UTC](https://meta.discourse.org/t/how-to-create-a-follow-button-for-a-topic-and-post-it-on-an-external-website/91266/3 "2018-06-30T16:02:31Z")

</div>

thanks. that’s a bit beyond my level, but i’ll pass it on to others in my team and see if they can set it up
