# Is it possible to use tags in a theme template to make something members only?

**URL:** <https://forum.ghost.org/t/is-it-possible-to-use-tags-in-a-theme-template-to-make-something-members-only/18958>\
**Category:** Developer help\
**Created:** [December 17, 2020, 6:21pm UTC](https://forum.ghost.org/t/is-it-possible-to-use-tags-in-a-theme-template-to-make-something-members-only/18958 "2020-12-17T18:21:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CheezBallz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cheezballz/32/10760_2.png) [@CheezBallz](https://forum.ghost.org/u/CheezBallz)\
**Post date:** [December 17, 2020, 6:21pm UTC](https://forum.ghost.org/t/is-it-possible-to-use-tags-in-a-theme-template-to-make-something-members-only/18958/1 "2020-12-17T18:21:46Z")

</div>

Coming from WP, I could create a page template and show a div & its contents only to people who are logged in, or people who have a specific role. Does something similar exist for Ghost? The Members document didn’t mention anything of this nature.

I have a specific use-case for this: I’d like to use Discourse with Ghost - but make it a members only option. If someone wants to comment, they have to become at least a free member.

---

<div class="post-metadata">

**Author:** ![minimaluminium](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/minimaluminium/32/2652_2.png) [@minimaluminium](https://forum.ghost.org/u/minimaluminium)\
**Post date:** [December 18, 2020, 4:21am UTC](https://forum.ghost.org/t/is-it-possible-to-use-tags-in-a-theme-template-to-make-something-members-only/18958/2 "2020-12-18T04:21:37Z")

</div>

Hey @CheezBallz, you could use `@member` helper for this.

```plaintext
{{if @member.paid}}
  <p>Thanks for becoming a paying member 🎉</p>
{{else if @member}}
  <p>Thanks for being a member 🙌</p>
{{else}}
  <p>You should totally sign up... 🖋</p>
{{/if}}

```

More info here. [Ghost Theme Development: Building custom membership flows](https://ghost.org/docs/themes/members/#the-member-helper)

---

<div class="post-metadata">

**Author:** ![CheezBallz](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cheezballz/32/10760_2.png) [@CheezBallz](https://forum.ghost.org/u/CheezBallz)\
**Post date:** [December 18, 2020, 5:20pm UTC](https://forum.ghost.org/t/is-it-possible-to-use-tags-in-a-theme-template-to-make-something-members-only/18958/3 "2020-12-18T17:20:18Z")

</div>

THANK YOU! I didn’t think to look in the theming section of the docs, my bad.
