# Get if a post is paid or not in template?

**URL:** <https://forum.ghost.org/t/get-if-a-post-is-paid-or-not-in-template/18549>\
**Category:** Themes\
**Created:** [November 28, 2020, 6:25am UTC](https://forum.ghost.org/t/get-if-a-post-is-paid-or-not-in-template/18549 "2020-11-28T06:25:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![laran](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/laran/32/6010_2.png) [@laran](https://forum.ghost.org/u/laran)\
**Post date:** [November 28, 2020, 6:25am UTC](https://forum.ghost.org/t/get-if-a-post-is-paid-or-not-in-template/18549/1 "2020-11-28T06:25:06Z")

</div>

Is there a way to show a section or not depending on whether a post is paid? I tried #has visibility=“paid” without luck.

---

<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:** [November 30, 2020, 4:41am UTC](https://forum.ghost.org/t/get-if-a-post-is-paid-or-not-in-template/18549/3 "2020-11-30T04:41:55Z")

</div>

Hey Laran, you could use `{{#if access}}`. [https://ghost.org/docs/members/content-visibility/#access](https://ghost.org/docs/members/content-visibility/#access)

`{{#has visibility="paid"}}` should also work. Could you show us the code you’re trying?

---

<div class="post-metadata">

**Author:** ![laran](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/laran/32/6010_2.png) [@laran](https://forum.ghost.org/u/laran)\
**Post date:** [November 30, 2020, 10:41pm UTC](https://forum.ghost.org/t/get-if-a-post-is-paid-or-not-in-template/18549/4 "2020-11-30T22:41:45Z")

</div>

Thank you so much! I actually figured it out. It was (not surprisingly) a mistake on my end. The post was set to visibility=member and I was checking for #has visibility=paid. Once I fixed that, it worked just fine.
