# Label Based Posts

**URL:** <https://forum.ghost.org/t/label-based-posts/43244>\
**Category:** Self-hosting\
**Created:** [December 8, 2023, 10:38am UTC](https://forum.ghost.org/t/label-based-posts/43244 "2023-12-08T10:38:32Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nickkolya](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/nickkolya/32/22771_2.png) [@Nickkolya](https://forum.ghost.org/u/Nickkolya)\
**Post date:** [December 8, 2023, 10:38am UTC](https://forum.ghost.org/t/label-based-posts/43244/1 "2023-12-08T10:38:32Z")

</div>

Hello, is this possible to create label-based posts in ghost? I don’t have stripe integration because my blog has no paid subscription (and also stripe isn’t available in every country in the world) and i need to create post that can access only specific users.  
So the question is:  
-is it possible to make ghost posts only for user with specific label?  
ro  
-maybe there is ready to use solution with NFT-based auth ?

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [December 8, 2023, 1:50pm UTC](https://forum.ghost.org/t/label-based-posts/43244/2 "2023-12-08T13:50:04Z")

</div>

Handlebars doesn’t have access to member labels (although I’d be happy to be corrected if I’m wrong). But you can link Stripe (even in test mode) and then give users complimentary access to a tier. (This can be done with the API, if you’re collecting payment another way.) You’ll want to disable showing those tiers in Portal, so that users can’t sign themselves up that way.

That gets you access to Ghost’s tier restricted posts, without actually having to take payments by Stripe.

Do test before you deploy - it’s a little bit of a hack.

---

<div class="post-metadata">

**Author:** ![Nickkolya](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/nickkolya/32/22771_2.png) [@Nickkolya](https://forum.ghost.org/u/Nickkolya)\
**Post date:** [December 8, 2023, 4:33pm UTC](https://forum.ghost.org/t/label-based-posts/43244/3 "2023-12-08T16:33:49Z")

</div>

You are genius man, thanks you a lot))) Maybe it’s not the best and secure way but it works!

---

<div class="post-metadata">

**Author:** ![Ravn](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ravn/32/20885_2.png) [@Ravn](https://forum.ghost.org/u/Ravn)\
**Post date:** [February 24, 2024, 6:18pm UTC](https://forum.ghost.org/t/label-based-posts/43244/4 "2024-02-24T18:18:21Z")

</div>

Hi Cathy, I am resurrecting this thread because I was looking for a label access solution in themes. I was able to log the member object with all labels in the theme. I am not sure if that is something new in the newest Ghost version 5.79.4 but it seems to be working.

```auto
    {{#if @member}}
    {{#foreach ../_locals.member.labels as |label|}}
    {{#match label.slug "=" 'test-label'}}
      {{> content}}
    {{/match}}
    {{/foreach}}

```

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [February 24, 2024, 7:16pm UTC](https://forum.ghost.org/t/label-based-posts/43244/5 "2024-02-24T19:16:58Z")

</div>

Wow. That’s a game changer!

---

<div class="post-metadata">

**Author:** ![Ravn](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ravn/32/20885_2.png) [@Ravn](https://forum.ghost.org/u/Ravn)\
**Post date:** [February 24, 2024, 7:23pm UTC](https://forum.ghost.org/t/label-based-posts/43244/6 "2024-02-24T19:23:46Z")

</div>

I think so, not sure how long it is there. Hopefully it will not be subject of change.

---

<div class="post-metadata">

**Author:** ![Shahbaz\_Ahmed](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/shahbaz_ahmed/32/30077_2.png) [@Shahbaz\_Ahmed](https://forum.ghost.org/u/Shahbaz_Ahmed)\
**Post date:** [October 30, 2024, 4:17am UTC](https://forum.ghost.org/t/label-based-posts/43244/8 "2024-10-30T04:17:34Z")

</div>

I have tested it for a website created through Ghost Pro and it did not work out. Probably it is only working for self-hosted Ghost websites.

---

<div class="post-metadata">

**Author:** ![Ravn](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/ravn/32/20885_2.png) [@Ravn](https://forum.ghost.org/u/Ravn)\
**Post date:** [October 30, 2024, 12:23pm UTC](https://forum.ghost.org/t/label-based-posts/43244/9 "2024-10-30T12:23:44Z")

</div>

This approach no longer works. Labels have been moved under the member object. You can log them in console when running Ghost in dev mode.  
`{{log member.labels}}`

---

<div class="post-metadata">

**Author:** ![Shahbaz\_Ahmed](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/shahbaz_ahmed/32/30077_2.png) [@Shahbaz\_Ahmed](https://forum.ghost.org/u/Shahbaz_Ahmed)\
**Post date:** [November 14, 2024, 6:18am UTC](https://forum.ghost.org/t/label-based-posts/43244/10 "2024-11-14T06:18:12Z")

</div>

I see, thanks. It is helpful.
